Package com.google.cloud.deploy.v1
Class CloudRunMetadata.Builder
java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessage.Builder<CloudRunMetadata.Builder>
com.google.cloud.deploy.v1.CloudRunMetadata.Builder
- All Implemented Interfaces:
CloudRunMetadataOrBuilder,com.google.protobuf.Message.Builder,com.google.protobuf.MessageLite.Builder,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,Cloneable
- Enclosing class:
- CloudRunMetadata
public static final class CloudRunMetadata.Builder
extends com.google.protobuf.GeneratedMessage.Builder<CloudRunMetadata.Builder>
implements CloudRunMetadataOrBuilder
CloudRunMetadata contains information from a Cloud Run deployment.Protobuf type
google.cloud.deploy.v1.CloudRunMetadata-
Method Summary
Modifier and TypeMethodDescriptionaddAllServiceUrls(Iterable<String> values) Output only.addServiceUrls(String value) Output only.addServiceUrlsBytes(com.google.protobuf.ByteString value) Output only.build()clear()clearJob()Output only.Output only.Output only.Output only.static final com.google.protobuf.Descriptors.Descriptorcom.google.protobuf.Descriptors.DescriptorgetJob()Output only.com.google.protobuf.ByteStringOutput only.Output only.com.google.protobuf.ByteStringOutput only.Output only.com.google.protobuf.ByteStringOutput only.getServiceUrls(int index) Output only.com.google.protobuf.ByteStringgetServiceUrlsBytes(int index) Output only.intOutput only.com.google.protobuf.ProtocolStringListOutput only.protected com.google.protobuf.GeneratedMessage.FieldAccessorTablefinal booleanmergeFrom(CloudRunMetadata other) mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) mergeFrom(com.google.protobuf.Message other) Output only.setJobBytes(com.google.protobuf.ByteString value) Output only.setRevision(String value) Output only.setRevisionBytes(com.google.protobuf.ByteString value) Output only.setService(String value) Output only.setServiceBytes(com.google.protobuf.ByteString value) Output only.setServiceUrls(int index, String value) Output only.Methods inherited from class com.google.protobuf.GeneratedMessage.Builder
addRepeatedField, clearField, clearOneof, clone, getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, internalGetMapField, internalGetMapFieldReflection, internalGetMutableMapField, internalGetMutableMapFieldReflection, isClean, markClean, mergeUnknownFields, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, setField, setRepeatedField, setUnknownFields, setUnknownFieldSetBuilder, setUnknownFieldsProto3Methods inherited from class com.google.protobuf.AbstractMessage.Builder
findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toStringMethods inherited from class com.google.protobuf.AbstractMessageLite.Builder
addAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, newUninitializedMessageExceptionMethods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface com.google.protobuf.Message.Builder
mergeDelimitedFrom, mergeDelimitedFromMethods inherited from interface com.google.protobuf.MessageLite.Builder
mergeFromMethods inherited from interface com.google.protobuf.MessageOrBuilder
findInitializationErrors, getAllFields, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
-
Method Details
-
getDescriptor
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() -
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()- Specified by:
internalGetFieldAccessorTablein classcom.google.protobuf.GeneratedMessage.Builder<CloudRunMetadata.Builder>
-
clear
- Specified by:
clearin interfacecom.google.protobuf.Message.Builder- Specified by:
clearin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
clearin classcom.google.protobuf.GeneratedMessage.Builder<CloudRunMetadata.Builder>
-
getDescriptorForType
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.Message.Builder- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.MessageOrBuilder- Overrides:
getDescriptorForTypein classcom.google.protobuf.GeneratedMessage.Builder<CloudRunMetadata.Builder>
-
getDefaultInstanceForType
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-
build
- Specified by:
buildin interfacecom.google.protobuf.Message.Builder- Specified by:
buildin interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
- Specified by:
buildPartialin interfacecom.google.protobuf.Message.Builder- Specified by:
buildPartialin interfacecom.google.protobuf.MessageLite.Builder
-
mergeFrom
- Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<CloudRunMetadata.Builder>
-
mergeFrom
-
isInitialized
public final boolean isInitialized()- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessage.Builder<CloudRunMetadata.Builder>
-
mergeFrom
public CloudRunMetadata.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException - Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Specified by:
mergeFromin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<CloudRunMetadata.Builder>- Throws:
IOException
-
getService
Output only. The name of the Cloud Run Service that is associated with a `Rollout`. Format is `projects/{project}/locations/{location}/services/{service}`.string service = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... }- Specified by:
getServicein interfaceCloudRunMetadataOrBuilder- Returns:
- The service.
-
getServiceBytes
public com.google.protobuf.ByteString getServiceBytes()Output only. The name of the Cloud Run Service that is associated with a `Rollout`. Format is `projects/{project}/locations/{location}/services/{service}`.string service = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... }- Specified by:
getServiceBytesin interfaceCloudRunMetadataOrBuilder- Returns:
- The bytes for service.
-
setService
Output only. The name of the Cloud Run Service that is associated with a `Rollout`. Format is `projects/{project}/locations/{location}/services/{service}`.string service = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... }- Parameters:
value- The service to set.- Returns:
- This builder for chaining.
-
clearService
Output only. The name of the Cloud Run Service that is associated with a `Rollout`. Format is `projects/{project}/locations/{location}/services/{service}`.string service = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... }- Returns:
- This builder for chaining.
-
setServiceBytes
Output only. The name of the Cloud Run Service that is associated with a `Rollout`. Format is `projects/{project}/locations/{location}/services/{service}`.string service = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... }- Parameters:
value- The bytes for service to set.- Returns:
- This builder for chaining.
-
getServiceUrlsList
public com.google.protobuf.ProtocolStringList getServiceUrlsList()Output only. The Cloud Run Service urls that are associated with a `Rollout`.
repeated string service_urls = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];- Specified by:
getServiceUrlsListin interfaceCloudRunMetadataOrBuilder- Returns:
- A list containing the serviceUrls.
-
getServiceUrlsCount
public int getServiceUrlsCount()Output only. The Cloud Run Service urls that are associated with a `Rollout`.
repeated string service_urls = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];- Specified by:
getServiceUrlsCountin interfaceCloudRunMetadataOrBuilder- Returns:
- The count of serviceUrls.
-
getServiceUrls
Output only. The Cloud Run Service urls that are associated with a `Rollout`.
repeated string service_urls = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];- Specified by:
getServiceUrlsin interfaceCloudRunMetadataOrBuilder- Parameters:
index- The index of the element to return.- Returns:
- The serviceUrls at the given index.
-
getServiceUrlsBytes
public com.google.protobuf.ByteString getServiceUrlsBytes(int index) Output only. The Cloud Run Service urls that are associated with a `Rollout`.
repeated string service_urls = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];- Specified by:
getServiceUrlsBytesin interfaceCloudRunMetadataOrBuilder- Parameters:
index- The index of the value to return.- Returns:
- The bytes of the serviceUrls at the given index.
-
setServiceUrls
Output only. The Cloud Run Service urls that are associated with a `Rollout`.
repeated string service_urls = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];- Parameters:
index- The index to set the value at.value- The serviceUrls to set.- Returns:
- This builder for chaining.
-
addServiceUrls
Output only. The Cloud Run Service urls that are associated with a `Rollout`.
repeated string service_urls = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];- Parameters:
value- The serviceUrls to add.- Returns:
- This builder for chaining.
-
addAllServiceUrls
Output only. The Cloud Run Service urls that are associated with a `Rollout`.
repeated string service_urls = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];- Parameters:
values- The serviceUrls to add.- Returns:
- This builder for chaining.
-
clearServiceUrls
Output only. The Cloud Run Service urls that are associated with a `Rollout`.
repeated string service_urls = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];- Returns:
- This builder for chaining.
-
addServiceUrlsBytes
Output only. The Cloud Run Service urls that are associated with a `Rollout`.
repeated string service_urls = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];- Parameters:
value- The bytes of the serviceUrls to add.- Returns:
- This builder for chaining.
-
getRevision
Output only. The Cloud Run Revision id associated with a `Rollout`.
string revision = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];- Specified by:
getRevisionin interfaceCloudRunMetadataOrBuilder- Returns:
- The revision.
-
getRevisionBytes
public com.google.protobuf.ByteString getRevisionBytes()Output only. The Cloud Run Revision id associated with a `Rollout`.
string revision = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];- Specified by:
getRevisionBytesin interfaceCloudRunMetadataOrBuilder- Returns:
- The bytes for revision.
-
setRevision
Output only. The Cloud Run Revision id associated with a `Rollout`.
string revision = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];- Parameters:
value- The revision to set.- Returns:
- This builder for chaining.
-
clearRevision
Output only. The Cloud Run Revision id associated with a `Rollout`.
string revision = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];- Returns:
- This builder for chaining.
-
setRevisionBytes
Output only. The Cloud Run Revision id associated with a `Rollout`.
string revision = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];- Parameters:
value- The bytes for revision to set.- Returns:
- This builder for chaining.
-
getJob
Output only. The name of the Cloud Run job that is associated with a `Rollout`. Format is `projects/{project}/locations/{location}/jobs/{job_name}`.string job = 4 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... }- Specified by:
getJobin interfaceCloudRunMetadataOrBuilder- Returns:
- The job.
-
getJobBytes
public com.google.protobuf.ByteString getJobBytes()Output only. The name of the Cloud Run job that is associated with a `Rollout`. Format is `projects/{project}/locations/{location}/jobs/{job_name}`.string job = 4 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... }- Specified by:
getJobBytesin interfaceCloudRunMetadataOrBuilder- Returns:
- The bytes for job.
-
setJob
Output only. The name of the Cloud Run job that is associated with a `Rollout`. Format is `projects/{project}/locations/{location}/jobs/{job_name}`.string job = 4 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... }- Parameters:
value- The job to set.- Returns:
- This builder for chaining.
-
clearJob
Output only. The name of the Cloud Run job that is associated with a `Rollout`. Format is `projects/{project}/locations/{location}/jobs/{job_name}`.string job = 4 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... }- Returns:
- This builder for chaining.
-
setJobBytes
Output only. The name of the Cloud Run job that is associated with a `Rollout`. Format is `projects/{project}/locations/{location}/jobs/{job_name}`.string job = 4 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... }- Parameters:
value- The bytes for job to set.- Returns:
- This builder for chaining.
-