Class Release.Builder
java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessage.Builder<Release.Builder>
com.google.cloud.configdelivery.v1beta.Release.Builder
- All Implemented Interfaces:
ReleaseOrBuilder,com.google.protobuf.Message.Builder,com.google.protobuf.MessageLite.Builder,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,Cloneable
- Enclosing class:
- Release
public static final class Release.Builder
extends com.google.protobuf.GeneratedMessage.Builder<Release.Builder>
implements ReleaseOrBuilder
`Release` represents a versioned release containing kubernetes manifests.Protobuf type
google.cloud.configdelivery.v1beta.Release-
Method Summary
Modifier and TypeMethodDescriptionbuild()clear()Output only.Output only.Optional. lifecycle of the `Release`.Identifier.Output only.Output only.Required. version of the `Release`.booleancontainsLabels(String key) Optional.com.google.protobuf.TimestampOutput only.com.google.protobuf.Timestamp.BuilderOutput only.com.google.protobuf.TimestampOrBuilderOutput only.static final com.google.protobuf.Descriptors.Descriptorcom.google.protobuf.Descriptors.DescriptorgetInfo()Output only.Output only.Output only.Deprecated.intOptional.Optional.getLabelsOrDefault(String key, String defaultValue) Optional.getLabelsOrThrow(String key) Optional.Optional. lifecycle of the `Release`.intOptional. lifecycle of the `Release`.Deprecated.getName()Identifier.com.google.protobuf.ByteStringIdentifier.com.google.protobuf.TimestampOutput only.com.google.protobuf.Timestamp.BuilderOutput only.com.google.protobuf.TimestampOrBuilderOutput only.com.google.protobuf.TimestampOutput only.com.google.protobuf.Timestamp.BuilderOutput only.com.google.protobuf.TimestampOrBuilderOutput only.Required. version of the `Release`.com.google.protobuf.ByteStringRequired. version of the `Release`.booleanOutput only.booleanhasInfo()Output only.booleanOutput only.booleanOutput only.protected com.google.protobuf.GeneratedMessage.FieldAccessorTableprotected com.google.protobuf.MapFieldReflectionAccessorinternalGetMapFieldReflection(int number) protected com.google.protobuf.MapFieldReflectionAccessorinternalGetMutableMapFieldReflection(int number) final booleanmergeCreateTime(com.google.protobuf.Timestamp value) Output only.mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) mergeFrom(com.google.protobuf.Message other) mergeInfo(ReleaseInfo value) Output only.mergePublishTime(com.google.protobuf.Timestamp value) Output only.mergeUpdateTime(com.google.protobuf.Timestamp value) Output only.putAllLabels(Map<String, String> values) Optional.Optional.removeLabels(String key) Optional.setCreateTime(com.google.protobuf.Timestamp value) Output only.setCreateTime(com.google.protobuf.Timestamp.Builder builderForValue) Output only.setInfo(ReleaseInfo value) Output only.setInfo(ReleaseInfo.Builder builderForValue) Output only.setLifecycle(Release.Lifecycle value) Optional. lifecycle of the `Release`.setLifecycleValue(int value) Optional. lifecycle of the `Release`.Identifier.setNameBytes(com.google.protobuf.ByteString value) Identifier.setPublishTime(com.google.protobuf.Timestamp value) Output only.setPublishTime(com.google.protobuf.Timestamp.Builder builderForValue) Output only.setUpdateTime(com.google.protobuf.Timestamp value) Output only.setUpdateTime(com.google.protobuf.Timestamp.Builder builderForValue) Output only.setVersion(String value) Required. version of the `Release`.setVersionBytes(com.google.protobuf.ByteString value) Required. version of the `Release`.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, internalGetMutableMapField, 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() -
internalGetMapFieldReflection
protected com.google.protobuf.MapFieldReflectionAccessor internalGetMapFieldReflection(int number) - Overrides:
internalGetMapFieldReflectionin classcom.google.protobuf.GeneratedMessage.Builder<Release.Builder>
-
internalGetMutableMapFieldReflection
protected com.google.protobuf.MapFieldReflectionAccessor internalGetMutableMapFieldReflection(int number) - Overrides:
internalGetMutableMapFieldReflectionin classcom.google.protobuf.GeneratedMessage.Builder<Release.Builder>
-
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()- Specified by:
internalGetFieldAccessorTablein classcom.google.protobuf.GeneratedMessage.Builder<Release.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<Release.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<Release.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<Release.Builder>
-
mergeFrom
-
isInitialized
public final boolean isInitialized()- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessage.Builder<Release.Builder>
-
mergeFrom
public Release.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<Release.Builder>- Throws:
IOException
-
getName
Identifier. Name of the Release. Format is `projects/{project}/locations/location}/resourceBundles/{resource_bundle}/release/[a-z][a-z0-9\-]{0,62}`.string name = 1 [(.google.api.field_behavior) = IDENTIFIER];- Specified by:
getNamein interfaceReleaseOrBuilder- Returns:
- The name.
-
getNameBytes
public com.google.protobuf.ByteString getNameBytes()Identifier. Name of the Release. Format is `projects/{project}/locations/location}/resourceBundles/{resource_bundle}/release/[a-z][a-z0-9\-]{0,62}`.string name = 1 [(.google.api.field_behavior) = IDENTIFIER];- Specified by:
getNameBytesin interfaceReleaseOrBuilder- Returns:
- The bytes for name.
-
setName
Identifier. Name of the Release. Format is `projects/{project}/locations/location}/resourceBundles/{resource_bundle}/release/[a-z][a-z0-9\-]{0,62}`.string name = 1 [(.google.api.field_behavior) = IDENTIFIER];- Parameters:
value- The name to set.- Returns:
- This builder for chaining.
-
clearName
Identifier. Name of the Release. Format is `projects/{project}/locations/location}/resourceBundles/{resource_bundle}/release/[a-z][a-z0-9\-]{0,62}`.string name = 1 [(.google.api.field_behavior) = IDENTIFIER];- Returns:
- This builder for chaining.
-
setNameBytes
Identifier. Name of the Release. Format is `projects/{project}/locations/location}/resourceBundles/{resource_bundle}/release/[a-z][a-z0-9\-]{0,62}`.string name = 1 [(.google.api.field_behavior) = IDENTIFIER];- Parameters:
value- The bytes for name to set.- Returns:
- This builder for chaining.
-
hasCreateTime
public boolean hasCreateTime()Output only. Time `Release` was created.
.google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];- Specified by:
hasCreateTimein interfaceReleaseOrBuilder- Returns:
- Whether the createTime field is set.
-
getCreateTime
public com.google.protobuf.Timestamp getCreateTime()Output only. Time `Release` was created.
.google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];- Specified by:
getCreateTimein interfaceReleaseOrBuilder- Returns:
- The createTime.
-
setCreateTime
Output only. Time `Release` was created.
.google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; -
setCreateTime
Output only. Time `Release` was created.
.google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; -
mergeCreateTime
Output only. Time `Release` was created.
.google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; -
clearCreateTime
Output only. Time `Release` was created.
.google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; -
getCreateTimeBuilder
public com.google.protobuf.Timestamp.Builder getCreateTimeBuilder()Output only. Time `Release` was created.
.google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; -
getCreateTimeOrBuilder
public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder()Output only. Time `Release` was created.
.google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];- Specified by:
getCreateTimeOrBuilderin interfaceReleaseOrBuilder
-
hasUpdateTime
public boolean hasUpdateTime()Output only. Time `Release` was last updated.
.google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];- Specified by:
hasUpdateTimein interfaceReleaseOrBuilder- Returns:
- Whether the updateTime field is set.
-
getUpdateTime
public com.google.protobuf.Timestamp getUpdateTime()Output only. Time `Release` was last updated.
.google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];- Specified by:
getUpdateTimein interfaceReleaseOrBuilder- Returns:
- The updateTime.
-
setUpdateTime
Output only. Time `Release` was last updated.
.google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; -
setUpdateTime
Output only. Time `Release` was last updated.
.google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; -
mergeUpdateTime
Output only. Time `Release` was last updated.
.google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; -
clearUpdateTime
Output only. Time `Release` was last updated.
.google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; -
getUpdateTimeBuilder
public com.google.protobuf.Timestamp.Builder getUpdateTimeBuilder()Output only. Time `Release` was last updated.
.google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; -
getUpdateTimeOrBuilder
public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder()Output only. Time `Release` was last updated.
.google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];- Specified by:
getUpdateTimeOrBuilderin interfaceReleaseOrBuilder
-
getLabelsCount
public int getLabelsCount()Description copied from interface:ReleaseOrBuilderOptional. Labels as key value pairs.
map<string, string> labels = 4 [(.google.api.field_behavior) = OPTIONAL];- Specified by:
getLabelsCountin interfaceReleaseOrBuilder
-
containsLabels
Optional. Labels as key value pairs.
map<string, string> labels = 4 [(.google.api.field_behavior) = OPTIONAL];- Specified by:
containsLabelsin interfaceReleaseOrBuilder
-
getLabels
Deprecated.UsegetLabelsMap()instead.- Specified by:
getLabelsin interfaceReleaseOrBuilder
-
getLabelsMap
Optional. Labels as key value pairs.
map<string, string> labels = 4 [(.google.api.field_behavior) = OPTIONAL];- Specified by:
getLabelsMapin interfaceReleaseOrBuilder
-
getLabelsOrDefault
Optional. Labels as key value pairs.
map<string, string> labels = 4 [(.google.api.field_behavior) = OPTIONAL];- Specified by:
getLabelsOrDefaultin interfaceReleaseOrBuilder
-
getLabelsOrThrow
Optional. Labels as key value pairs.
map<string, string> labels = 4 [(.google.api.field_behavior) = OPTIONAL];- Specified by:
getLabelsOrThrowin interfaceReleaseOrBuilder
-
clearLabels
-
removeLabels
Optional. Labels as key value pairs.
map<string, string> labels = 4 [(.google.api.field_behavior) = OPTIONAL]; -
getMutableLabels
Deprecated.Use alternate mutation accessors instead. -
putLabels
Optional. Labels as key value pairs.
map<string, string> labels = 4 [(.google.api.field_behavior) = OPTIONAL]; -
putAllLabels
Optional. Labels as key value pairs.
map<string, string> labels = 4 [(.google.api.field_behavior) = OPTIONAL]; -
getLifecycleValue
public int getLifecycleValue()Optional. lifecycle of the `Release`.
.google.cloud.configdelivery.v1beta.Release.Lifecycle lifecycle = 5 [(.google.api.field_behavior) = OPTIONAL];- Specified by:
getLifecycleValuein interfaceReleaseOrBuilder- Returns:
- The enum numeric value on the wire for lifecycle.
-
setLifecycleValue
Optional. lifecycle of the `Release`.
.google.cloud.configdelivery.v1beta.Release.Lifecycle lifecycle = 5 [(.google.api.field_behavior) = OPTIONAL];- Parameters:
value- The enum numeric value on the wire for lifecycle to set.- Returns:
- This builder for chaining.
-
getLifecycle
Optional. lifecycle of the `Release`.
.google.cloud.configdelivery.v1beta.Release.Lifecycle lifecycle = 5 [(.google.api.field_behavior) = OPTIONAL];- Specified by:
getLifecyclein interfaceReleaseOrBuilder- Returns:
- The lifecycle.
-
setLifecycle
Optional. lifecycle of the `Release`.
.google.cloud.configdelivery.v1beta.Release.Lifecycle lifecycle = 5 [(.google.api.field_behavior) = OPTIONAL];- Parameters:
value- The lifecycle to set.- Returns:
- This builder for chaining.
-
clearLifecycle
Optional. lifecycle of the `Release`.
.google.cloud.configdelivery.v1beta.Release.Lifecycle lifecycle = 5 [(.google.api.field_behavior) = OPTIONAL];- Returns:
- This builder for chaining.
-
getVersion
Required. version of the `Release`. This must be v<major>.<minor>.<patch>.
string version = 6 [(.google.api.field_behavior) = REQUIRED];- Specified by:
getVersionin interfaceReleaseOrBuilder- Returns:
- The version.
-
getVersionBytes
public com.google.protobuf.ByteString getVersionBytes()Required. version of the `Release`. This must be v<major>.<minor>.<patch>.
string version = 6 [(.google.api.field_behavior) = REQUIRED];- Specified by:
getVersionBytesin interfaceReleaseOrBuilder- Returns:
- The bytes for version.
-
setVersion
Required. version of the `Release`. This must be v<major>.<minor>.<patch>.
string version = 6 [(.google.api.field_behavior) = REQUIRED];- Parameters:
value- The version to set.- Returns:
- This builder for chaining.
-
clearVersion
Required. version of the `Release`. This must be v<major>.<minor>.<patch>.
string version = 6 [(.google.api.field_behavior) = REQUIRED];- Returns:
- This builder for chaining.
-
setVersionBytes
Required. version of the `Release`. This must be v<major>.<minor>.<patch>.
string version = 6 [(.google.api.field_behavior) = REQUIRED];- Parameters:
value- The bytes for version to set.- Returns:
- This builder for chaining.
-
hasPublishTime
public boolean hasPublishTime()Output only. Time the `Release` was published.
.google.protobuf.Timestamp publish_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];- Specified by:
hasPublishTimein interfaceReleaseOrBuilder- Returns:
- Whether the publishTime field is set.
-
getPublishTime
public com.google.protobuf.Timestamp getPublishTime()Output only. Time the `Release` was published.
.google.protobuf.Timestamp publish_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];- Specified by:
getPublishTimein interfaceReleaseOrBuilder- Returns:
- The publishTime.
-
setPublishTime
Output only. Time the `Release` was published.
.google.protobuf.Timestamp publish_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; -
setPublishTime
Output only. Time the `Release` was published.
.google.protobuf.Timestamp publish_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; -
mergePublishTime
Output only. Time the `Release` was published.
.google.protobuf.Timestamp publish_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; -
clearPublishTime
Output only. Time the `Release` was published.
.google.protobuf.Timestamp publish_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; -
getPublishTimeBuilder
public com.google.protobuf.Timestamp.Builder getPublishTimeBuilder()Output only. Time the `Release` was published.
.google.protobuf.Timestamp publish_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; -
getPublishTimeOrBuilder
public com.google.protobuf.TimestampOrBuilder getPublishTimeOrBuilder()Output only. Time the `Release` was published.
.google.protobuf.Timestamp publish_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];- Specified by:
getPublishTimeOrBuilderin interfaceReleaseOrBuilder
-
hasInfo
public boolean hasInfo()Output only. `ResourceBundle` Release extra information e.g., artifact registry image path.
.google.cloud.configdelivery.v1beta.ReleaseInfo info = 9 [(.google.api.field_behavior) = OUTPUT_ONLY];- Specified by:
hasInfoin interfaceReleaseOrBuilder- Returns:
- Whether the info field is set.
-
getInfo
Output only. `ResourceBundle` Release extra information e.g., artifact registry image path.
.google.cloud.configdelivery.v1beta.ReleaseInfo info = 9 [(.google.api.field_behavior) = OUTPUT_ONLY];- Specified by:
getInfoin interfaceReleaseOrBuilder- Returns:
- The info.
-
setInfo
Output only. `ResourceBundle` Release extra information e.g., artifact registry image path.
.google.cloud.configdelivery.v1beta.ReleaseInfo info = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; -
setInfo
Output only. `ResourceBundle` Release extra information e.g., artifact registry image path.
.google.cloud.configdelivery.v1beta.ReleaseInfo info = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; -
mergeInfo
Output only. `ResourceBundle` Release extra information e.g., artifact registry image path.
.google.cloud.configdelivery.v1beta.ReleaseInfo info = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; -
clearInfo
Output only. `ResourceBundle` Release extra information e.g., artifact registry image path.
.google.cloud.configdelivery.v1beta.ReleaseInfo info = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; -
getInfoBuilder
Output only. `ResourceBundle` Release extra information e.g., artifact registry image path.
.google.cloud.configdelivery.v1beta.ReleaseInfo info = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; -
getInfoOrBuilder
Output only. `ResourceBundle` Release extra information e.g., artifact registry image path.
.google.cloud.configdelivery.v1beta.ReleaseInfo info = 9 [(.google.api.field_behavior) = OUTPUT_ONLY];- Specified by:
getInfoOrBuilderin interfaceReleaseOrBuilder
-