diff --git a/README.md b/README.md index 517b10f9..c6c748e6 100644 --- a/README.md +++ b/README.md @@ -27,13 +27,13 @@ If you are using Maven, add this to your pom.xml file: If you are using Gradle without BOM, add this to your dependencies ```Groovy -implementation 'com.google.cloud:google-cloud-functions:2.2.0' +implementation 'com.google.cloud:google-cloud-functions:2.2.1' ``` If you are using SBT, add this to your dependencies ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-functions" % "2.2.0" +libraryDependencies += "com.google.cloud" % "google-cloud-functions" % "2.2.1" ``` ## Authentication diff --git a/proto-google-cloud-functions-v1/src/main/java/com/google/cloud/functions/v1/CallFunctionRequest.java b/proto-google-cloud-functions-v1/src/main/java/com/google/cloud/functions/v1/CallFunctionRequest.java index 94c255b8..8efc22d6 100644 --- a/proto-google-cloud-functions-v1/src/main/java/com/google/cloud/functions/v1/CallFunctionRequest.java +++ b/proto-google-cloud-functions-v1/src/main/java/com/google/cloud/functions/v1/CallFunctionRequest.java @@ -235,10 +235,10 @@ public final boolean isInitialized() { @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - if (!getNameBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); } - if (!getDataBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(data_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 2, data_); } unknownFields.writeTo(output); @@ -250,10 +250,10 @@ public int getSerializedSize() { if (size != -1) return size; size = 0; - if (!getNameBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); } - if (!getDataBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(data_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, data_); } size += unknownFields.getSerializedSize(); diff --git a/proto-google-cloud-functions-v1/src/main/java/com/google/cloud/functions/v1/CallFunctionResponse.java b/proto-google-cloud-functions-v1/src/main/java/com/google/cloud/functions/v1/CallFunctionResponse.java index 999acde9..b6416c46 100644 --- a/proto-google-cloud-functions-v1/src/main/java/com/google/cloud/functions/v1/CallFunctionResponse.java +++ b/proto-google-cloud-functions-v1/src/main/java/com/google/cloud/functions/v1/CallFunctionResponse.java @@ -292,13 +292,13 @@ public final boolean isInitialized() { @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - if (!getExecutionIdBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(executionId_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, executionId_); } - if (!getResultBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(result_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 2, result_); } - if (!getErrorBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(error_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 3, error_); } unknownFields.writeTo(output); @@ -310,13 +310,13 @@ public int getSerializedSize() { if (size != -1) return size; size = 0; - if (!getExecutionIdBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(executionId_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, executionId_); } - if (!getResultBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(result_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, result_); } - if (!getErrorBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(error_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, error_); } size += unknownFields.getSerializedSize(); diff --git a/proto-google-cloud-functions-v1/src/main/java/com/google/cloud/functions/v1/CloudFunction.java b/proto-google-cloud-functions-v1/src/main/java/com/google/cloud/functions/v1/CloudFunction.java index 03700e1c..d2cc974d 100644 --- a/proto-google-cloud-functions-v1/src/main/java/com/google/cloud/functions/v1/CloudFunction.java +++ b/proto-google-cloud-functions-v1/src/main/java/com/google/cloud/functions/v1/CloudFunction.java @@ -2051,10 +2051,10 @@ public final boolean isInitialized() { @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - if (!getNameBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); } - if (!getDescriptionBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(description_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 2, description_); } if (sourceCodeCase_ == 3) { @@ -2074,7 +2074,7 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io .getNumber()) { output.writeEnum(7, status_); } - if (!getEntryPointBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(entryPoint_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 8, entryPoint_); } if (timeout_ != null) { @@ -2083,7 +2083,7 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (availableMemoryMb_ != 0) { output.writeInt32(10, availableMemoryMb_); } - if (!getServiceAccountEmailBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(serviceAccountEmail_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 11, serviceAccountEmail_); } if (updateTime_ != null) { @@ -2102,16 +2102,16 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io internalGetEnvironmentVariables(), EnvironmentVariablesDefaultEntryHolder.defaultEntry, 17); - if (!getNetworkBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(network_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 18, network_); } - if (!getRuntimeBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(runtime_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 19, runtime_); } if (maxInstances_ != 0) { output.writeInt32(20, maxInstances_); } - if (!getVpcConnectorBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(vpcConnector_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 22, vpcConnector_); } if (vpcConnectorEgressSettings_ @@ -2125,7 +2125,7 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io .getNumber()) { output.writeEnum(24, ingressSettings_); } - if (!getBuildIdBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(buildId_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 27, buildId_); } unknownFields.writeTo(output); @@ -2137,10 +2137,10 @@ public int getSerializedSize() { if (size != -1) return size; size = 0; - if (!getNameBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); } - if (!getDescriptionBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(description_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, description_); } if (sourceCodeCase_ == 3) { @@ -2166,7 +2166,7 @@ public int getSerializedSize() { .getNumber()) { size += com.google.protobuf.CodedOutputStream.computeEnumSize(7, status_); } - if (!getEntryPointBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(entryPoint_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(8, entryPoint_); } if (timeout_ != null) { @@ -2175,7 +2175,7 @@ public int getSerializedSize() { if (availableMemoryMb_ != 0) { size += com.google.protobuf.CodedOutputStream.computeInt32Size(10, availableMemoryMb_); } - if (!getServiceAccountEmailBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(serviceAccountEmail_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(11, serviceAccountEmail_); } if (updateTime_ != null) { @@ -2207,16 +2207,16 @@ public int getSerializedSize() { .build(); size += com.google.protobuf.CodedOutputStream.computeMessageSize(17, environmentVariables__); } - if (!getNetworkBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(network_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(18, network_); } - if (!getRuntimeBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(runtime_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(19, runtime_); } if (maxInstances_ != 0) { size += com.google.protobuf.CodedOutputStream.computeInt32Size(20, maxInstances_); } - if (!getVpcConnectorBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(vpcConnector_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(22, vpcConnector_); } if (vpcConnectorEgressSettings_ @@ -2231,7 +2231,7 @@ public int getSerializedSize() { .getNumber()) { size += com.google.protobuf.CodedOutputStream.computeEnumSize(24, ingressSettings_); } - if (!getBuildIdBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(buildId_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(27, buildId_); } size += unknownFields.getSerializedSize(); diff --git a/proto-google-cloud-functions-v1/src/main/java/com/google/cloud/functions/v1/CreateFunctionRequest.java b/proto-google-cloud-functions-v1/src/main/java/com/google/cloud/functions/v1/CreateFunctionRequest.java index 32fddd68..8115a8d5 100644 --- a/proto-google-cloud-functions-v1/src/main/java/com/google/cloud/functions/v1/CreateFunctionRequest.java +++ b/proto-google-cloud-functions-v1/src/main/java/com/google/cloud/functions/v1/CreateFunctionRequest.java @@ -250,7 +250,7 @@ public final boolean isInitialized() { @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - if (!getLocationBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(location_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, location_); } if (function_ != null) { @@ -265,7 +265,7 @@ public int getSerializedSize() { if (size != -1) return size; size = 0; - if (!getLocationBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(location_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, location_); } if (function_ != null) { diff --git a/proto-google-cloud-functions-v1/src/main/java/com/google/cloud/functions/v1/DeleteFunctionRequest.java b/proto-google-cloud-functions-v1/src/main/java/com/google/cloud/functions/v1/DeleteFunctionRequest.java index 30de42bd..4fd015fc 100644 --- a/proto-google-cloud-functions-v1/src/main/java/com/google/cloud/functions/v1/DeleteFunctionRequest.java +++ b/proto-google-cloud-functions-v1/src/main/java/com/google/cloud/functions/v1/DeleteFunctionRequest.java @@ -178,7 +178,7 @@ public final boolean isInitialized() { @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - if (!getNameBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); } unknownFields.writeTo(output); @@ -190,7 +190,7 @@ public int getSerializedSize() { if (size != -1) return size; size = 0; - if (!getNameBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); } size += unknownFields.getSerializedSize(); diff --git a/proto-google-cloud-functions-v1/src/main/java/com/google/cloud/functions/v1/EventTrigger.java b/proto-google-cloud-functions-v1/src/main/java/com/google/cloud/functions/v1/EventTrigger.java index ac06c038..feb8b4a8 100644 --- a/proto-google-cloud-functions-v1/src/main/java/com/google/cloud/functions/v1/EventTrigger.java +++ b/proto-google-cloud-functions-v1/src/main/java/com/google/cloud/functions/v1/EventTrigger.java @@ -409,13 +409,13 @@ public final boolean isInitialized() { @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - if (!getEventTypeBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(eventType_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, eventType_); } - if (!getResourceBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(resource_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 2, resource_); } - if (!getServiceBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(service_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 3, service_); } if (failurePolicy_ != null) { @@ -430,13 +430,13 @@ public int getSerializedSize() { if (size != -1) return size; size = 0; - if (!getEventTypeBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(eventType_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, eventType_); } - if (!getResourceBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(resource_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, resource_); } - if (!getServiceBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(service_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, service_); } if (failurePolicy_ != null) { diff --git a/proto-google-cloud-functions-v1/src/main/java/com/google/cloud/functions/v1/GenerateDownloadUrlRequest.java b/proto-google-cloud-functions-v1/src/main/java/com/google/cloud/functions/v1/GenerateDownloadUrlRequest.java index 1280034b..a961e0b7 100644 --- a/proto-google-cloud-functions-v1/src/main/java/com/google/cloud/functions/v1/GenerateDownloadUrlRequest.java +++ b/proto-google-cloud-functions-v1/src/main/java/com/google/cloud/functions/v1/GenerateDownloadUrlRequest.java @@ -200,7 +200,7 @@ public final boolean isInitialized() { @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - if (!getNameBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); } if (versionId_ != 0L) { @@ -215,7 +215,7 @@ public int getSerializedSize() { if (size != -1) return size; size = 0; - if (!getNameBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); } if (versionId_ != 0L) { diff --git a/proto-google-cloud-functions-v1/src/main/java/com/google/cloud/functions/v1/GenerateDownloadUrlResponse.java b/proto-google-cloud-functions-v1/src/main/java/com/google/cloud/functions/v1/GenerateDownloadUrlResponse.java index a55bdc7d..7a59fd4e 100644 --- a/proto-google-cloud-functions-v1/src/main/java/com/google/cloud/functions/v1/GenerateDownloadUrlResponse.java +++ b/proto-google-cloud-functions-v1/src/main/java/com/google/cloud/functions/v1/GenerateDownloadUrlResponse.java @@ -176,7 +176,7 @@ public final boolean isInitialized() { @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - if (!getDownloadUrlBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(downloadUrl_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, downloadUrl_); } unknownFields.writeTo(output); @@ -188,7 +188,7 @@ public int getSerializedSize() { if (size != -1) return size; size = 0; - if (!getDownloadUrlBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(downloadUrl_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, downloadUrl_); } size += unknownFields.getSerializedSize(); diff --git a/proto-google-cloud-functions-v1/src/main/java/com/google/cloud/functions/v1/GenerateUploadUrlRequest.java b/proto-google-cloud-functions-v1/src/main/java/com/google/cloud/functions/v1/GenerateUploadUrlRequest.java index 4910b85b..fa1af76c 100644 --- a/proto-google-cloud-functions-v1/src/main/java/com/google/cloud/functions/v1/GenerateUploadUrlRequest.java +++ b/proto-google-cloud-functions-v1/src/main/java/com/google/cloud/functions/v1/GenerateUploadUrlRequest.java @@ -176,7 +176,7 @@ public final boolean isInitialized() { @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - if (!getParentBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parent_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, parent_); } unknownFields.writeTo(output); @@ -188,7 +188,7 @@ public int getSerializedSize() { if (size != -1) return size; size = 0; - if (!getParentBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parent_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, parent_); } size += unknownFields.getSerializedSize(); diff --git a/proto-google-cloud-functions-v1/src/main/java/com/google/cloud/functions/v1/GenerateUploadUrlResponse.java b/proto-google-cloud-functions-v1/src/main/java/com/google/cloud/functions/v1/GenerateUploadUrlResponse.java index 55844172..ab3eccca 100644 --- a/proto-google-cloud-functions-v1/src/main/java/com/google/cloud/functions/v1/GenerateUploadUrlResponse.java +++ b/proto-google-cloud-functions-v1/src/main/java/com/google/cloud/functions/v1/GenerateUploadUrlResponse.java @@ -178,7 +178,7 @@ public final boolean isInitialized() { @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - if (!getUploadUrlBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(uploadUrl_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, uploadUrl_); } unknownFields.writeTo(output); @@ -190,7 +190,7 @@ public int getSerializedSize() { if (size != -1) return size; size = 0; - if (!getUploadUrlBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(uploadUrl_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, uploadUrl_); } size += unknownFields.getSerializedSize(); diff --git a/proto-google-cloud-functions-v1/src/main/java/com/google/cloud/functions/v1/GetFunctionRequest.java b/proto-google-cloud-functions-v1/src/main/java/com/google/cloud/functions/v1/GetFunctionRequest.java index 1257655b..14c5795d 100644 --- a/proto-google-cloud-functions-v1/src/main/java/com/google/cloud/functions/v1/GetFunctionRequest.java +++ b/proto-google-cloud-functions-v1/src/main/java/com/google/cloud/functions/v1/GetFunctionRequest.java @@ -178,7 +178,7 @@ public final boolean isInitialized() { @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - if (!getNameBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); } unknownFields.writeTo(output); @@ -190,7 +190,7 @@ public int getSerializedSize() { if (size != -1) return size; size = 0; - if (!getNameBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); } size += unknownFields.getSerializedSize(); diff --git a/proto-google-cloud-functions-v1/src/main/java/com/google/cloud/functions/v1/HttpsTrigger.java b/proto-google-cloud-functions-v1/src/main/java/com/google/cloud/functions/v1/HttpsTrigger.java index 492fcc76..4c27eab2 100644 --- a/proto-google-cloud-functions-v1/src/main/java/com/google/cloud/functions/v1/HttpsTrigger.java +++ b/proto-google-cloud-functions-v1/src/main/java/com/google/cloud/functions/v1/HttpsTrigger.java @@ -387,7 +387,7 @@ public final boolean isInitialized() { @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - if (!getUrlBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(url_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, url_); } if (securityLevel_ @@ -404,7 +404,7 @@ public int getSerializedSize() { if (size != -1) return size; size = 0; - if (!getUrlBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(url_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, url_); } if (securityLevel_ diff --git a/proto-google-cloud-functions-v1/src/main/java/com/google/cloud/functions/v1/ListFunctionsRequest.java b/proto-google-cloud-functions-v1/src/main/java/com/google/cloud/functions/v1/ListFunctionsRequest.java index 841fa0c7..01a10765 100644 --- a/proto-google-cloud-functions-v1/src/main/java/com/google/cloud/functions/v1/ListFunctionsRequest.java +++ b/proto-google-cloud-functions-v1/src/main/java/com/google/cloud/functions/v1/ListFunctionsRequest.java @@ -270,13 +270,13 @@ public final boolean isInitialized() { @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - if (!getParentBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parent_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, parent_); } if (pageSize_ != 0) { output.writeInt32(2, pageSize_); } - if (!getPageTokenBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(pageToken_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 3, pageToken_); } unknownFields.writeTo(output); @@ -288,13 +288,13 @@ public int getSerializedSize() { if (size != -1) return size; size = 0; - if (!getParentBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parent_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, parent_); } if (pageSize_ != 0) { size += com.google.protobuf.CodedOutputStream.computeInt32Size(2, pageSize_); } - if (!getPageTokenBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(pageToken_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, pageToken_); } size += unknownFields.getSerializedSize(); diff --git a/proto-google-cloud-functions-v1/src/main/java/com/google/cloud/functions/v1/ListFunctionsResponse.java b/proto-google-cloud-functions-v1/src/main/java/com/google/cloud/functions/v1/ListFunctionsResponse.java index cc730cf8..a522f84d 100644 --- a/proto-google-cloud-functions-v1/src/main/java/com/google/cloud/functions/v1/ListFunctionsResponse.java +++ b/proto-google-cloud-functions-v1/src/main/java/com/google/cloud/functions/v1/ListFunctionsResponse.java @@ -347,7 +347,7 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io for (int i = 0; i < functions_.size(); i++) { output.writeMessage(1, functions_.get(i)); } - if (!getNextPageTokenBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(nextPageToken_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 2, nextPageToken_); } for (int i = 0; i < unreachable_.size(); i++) { @@ -365,7 +365,7 @@ public int getSerializedSize() { for (int i = 0; i < functions_.size(); i++) { size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, functions_.get(i)); } - if (!getNextPageTokenBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(nextPageToken_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, nextPageToken_); } { diff --git a/proto-google-cloud-functions-v1/src/main/java/com/google/cloud/functions/v1/OperationMetadataV1.java b/proto-google-cloud-functions-v1/src/main/java/com/google/cloud/functions/v1/OperationMetadataV1.java index 252be479..f52814e7 100644 --- a/proto-google-cloud-functions-v1/src/main/java/com/google/cloud/functions/v1/OperationMetadataV1.java +++ b/proto-google-cloud-functions-v1/src/main/java/com/google/cloud/functions/v1/OperationMetadataV1.java @@ -424,7 +424,7 @@ public final boolean isInitialized() { @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - if (!getTargetBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(target_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, target_); } if (type_ != com.google.cloud.functions.v1.OperationType.OPERATION_UNSPECIFIED.getNumber()) { @@ -439,7 +439,7 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (updateTime_ != null) { output.writeMessage(5, getUpdateTime()); } - if (!getBuildIdBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(buildId_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 6, buildId_); } unknownFields.writeTo(output); @@ -451,7 +451,7 @@ public int getSerializedSize() { if (size != -1) return size; size = 0; - if (!getTargetBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(target_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, target_); } if (type_ != com.google.cloud.functions.v1.OperationType.OPERATION_UNSPECIFIED.getNumber()) { @@ -466,7 +466,7 @@ public int getSerializedSize() { if (updateTime_ != null) { size += com.google.protobuf.CodedOutputStream.computeMessageSize(5, getUpdateTime()); } - if (!getBuildIdBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(buildId_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(6, buildId_); } size += unknownFields.getSerializedSize(); diff --git a/proto-google-cloud-functions-v1/src/main/java/com/google/cloud/functions/v1/SourceRepository.java b/proto-google-cloud-functions-v1/src/main/java/com/google/cloud/functions/v1/SourceRepository.java index 4970e50d..8b5e9635 100644 --- a/proto-google-cloud-functions-v1/src/main/java/com/google/cloud/functions/v1/SourceRepository.java +++ b/proto-google-cloud-functions-v1/src/main/java/com/google/cloud/functions/v1/SourceRepository.java @@ -256,10 +256,10 @@ public final boolean isInitialized() { @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - if (!getUrlBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(url_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, url_); } - if (!getDeployedUrlBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(deployedUrl_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 2, deployedUrl_); } unknownFields.writeTo(output); @@ -271,10 +271,10 @@ public int getSerializedSize() { if (size != -1) return size; size = 0; - if (!getUrlBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(url_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, url_); } - if (!getDeployedUrlBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(deployedUrl_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, deployedUrl_); } size += unknownFields.getSerializedSize();