Class ApiVersion.Builder
- java.lang.Object
-
- com.google.protobuf.AbstractMessageLite.Builder
-
- com.google.protobuf.AbstractMessage.Builder<BuilderT>
-
- com.google.protobuf.GeneratedMessageV3.Builder<ApiVersion.Builder>
-
- com.google.cloud.apigeeregistry.v1.ApiVersion.Builder
-
- All Implemented Interfaces:
ApiVersionOrBuilder,com.google.protobuf.Message.Builder,com.google.protobuf.MessageLite.Builder,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,Cloneable
- Enclosing class:
- ApiVersion
public static final class ApiVersion.Builder extends com.google.protobuf.GeneratedMessageV3.Builder<ApiVersion.Builder> implements ApiVersionOrBuilder
Describes a particular version of an API. ApiVersions are what consumers actually use.
Protobuf typegoogle.cloud.apigeeregistry.v1.ApiVersion
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description ApiVersion.BuilderaddRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)ApiVersionbuild()ApiVersionbuildPartial()ApiVersion.Builderclear()ApiVersion.BuilderclearAnnotations()ApiVersion.BuilderclearCreateTime()Output only.ApiVersion.BuilderclearDescription()A detailed description.ApiVersion.BuilderclearDisplayName()Human-meaningful name.ApiVersion.BuilderclearField(com.google.protobuf.Descriptors.FieldDescriptor field)ApiVersion.BuilderclearLabels()ApiVersion.BuilderclearName()Resource name.ApiVersion.BuilderclearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)ApiVersion.BuilderclearState()A user-definable description of the lifecycle phase of this API version.ApiVersion.BuilderclearUpdateTime()Output only.ApiVersion.Builderclone()booleancontainsAnnotations(String key)Annotations attach non-identifying metadata to resources.booleancontainsLabels(String key)Labels attach identifying metadata to resources.Map<String,String>getAnnotations()Deprecated.intgetAnnotationsCount()Annotations attach non-identifying metadata to resources.Map<String,String>getAnnotationsMap()Annotations attach non-identifying metadata to resources.StringgetAnnotationsOrDefault(String key, String defaultValue)Annotations attach non-identifying metadata to resources.StringgetAnnotationsOrThrow(String key)Annotations attach non-identifying metadata to resources.com.google.protobuf.TimestampgetCreateTime()Output only.com.google.protobuf.Timestamp.BuildergetCreateTimeBuilder()Output only.com.google.protobuf.TimestampOrBuildergetCreateTimeOrBuilder()Output only.ApiVersiongetDefaultInstanceForType()StringgetDescription()A detailed description.com.google.protobuf.ByteStringgetDescriptionBytes()A detailed description.static com.google.protobuf.Descriptors.DescriptorgetDescriptor()com.google.protobuf.Descriptors.DescriptorgetDescriptorForType()StringgetDisplayName()Human-meaningful name.com.google.protobuf.ByteStringgetDisplayNameBytes()Human-meaningful name.Map<String,String>getLabels()Deprecated.intgetLabelsCount()Labels attach identifying metadata to resources.Map<String,String>getLabelsMap()Labels attach identifying metadata to resources.StringgetLabelsOrDefault(String key, String defaultValue)Labels attach identifying metadata to resources.StringgetLabelsOrThrow(String key)Labels attach identifying metadata to resources.Map<String,String>getMutableAnnotations()Deprecated.Map<String,String>getMutableLabels()Deprecated.StringgetName()Resource name.com.google.protobuf.ByteStringgetNameBytes()Resource name.StringgetState()A user-definable description of the lifecycle phase of this API version.com.google.protobuf.ByteStringgetStateBytes()A user-definable description of the lifecycle phase of this API version.com.google.protobuf.TimestampgetUpdateTime()Output only.com.google.protobuf.Timestamp.BuildergetUpdateTimeBuilder()Output only.com.google.protobuf.TimestampOrBuildergetUpdateTimeOrBuilder()Output only.booleanhasCreateTime()Output only.booleanhasUpdateTime()Output only.protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTableinternalGetFieldAccessorTable()protected com.google.protobuf.MapFieldinternalGetMapField(int number)protected com.google.protobuf.MapFieldinternalGetMutableMapField(int number)booleanisInitialized()ApiVersion.BuildermergeCreateTime(com.google.protobuf.Timestamp value)Output only.ApiVersion.BuildermergeFrom(ApiVersion other)ApiVersion.BuildermergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)ApiVersion.BuildermergeFrom(com.google.protobuf.Message other)ApiVersion.BuildermergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)ApiVersion.BuildermergeUpdateTime(com.google.protobuf.Timestamp value)Output only.ApiVersion.BuilderputAllAnnotations(Map<String,String> values)Annotations attach non-identifying metadata to resources.ApiVersion.BuilderputAllLabels(Map<String,String> values)Labels attach identifying metadata to resources.ApiVersion.BuilderputAnnotations(String key, String value)Annotations attach non-identifying metadata to resources.ApiVersion.BuilderputLabels(String key, String value)Labels attach identifying metadata to resources.ApiVersion.BuilderremoveAnnotations(String key)Annotations attach non-identifying metadata to resources.ApiVersion.BuilderremoveLabels(String key)Labels attach identifying metadata to resources.ApiVersion.BuildersetCreateTime(com.google.protobuf.Timestamp value)Output only.ApiVersion.BuildersetCreateTime(com.google.protobuf.Timestamp.Builder builderForValue)Output only.ApiVersion.BuildersetDescription(String value)A detailed description.ApiVersion.BuildersetDescriptionBytes(com.google.protobuf.ByteString value)A detailed description.ApiVersion.BuildersetDisplayName(String value)Human-meaningful name.ApiVersion.BuildersetDisplayNameBytes(com.google.protobuf.ByteString value)Human-meaningful name.ApiVersion.BuildersetField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)ApiVersion.BuildersetName(String value)Resource name.ApiVersion.BuildersetNameBytes(com.google.protobuf.ByteString value)Resource name.ApiVersion.BuildersetRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)ApiVersion.BuildersetState(String value)A user-definable description of the lifecycle phase of this API version.ApiVersion.BuildersetStateBytes(com.google.protobuf.ByteString value)A user-definable description of the lifecycle phase of this API version.ApiVersion.BuildersetUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)ApiVersion.BuildersetUpdateTime(com.google.protobuf.Timestamp value)Output only.ApiVersion.BuildersetUpdateTime(com.google.protobuf.Timestamp.Builder builderForValue)Output only.-
Methods inherited from class com.google.protobuf.GeneratedMessageV3.Builder
getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, isClean, markClean, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, setUnknownFieldSetBuilder, setUnknownFieldsProto3
-
Methods inherited from class com.google.protobuf.AbstractMessage.Builder
findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toString
-
Methods inherited from class com.google.protobuf.AbstractMessageLite.Builder
addAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, newUninitializedMessageException
-
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
-
-
-
Method Detail
-
getDescriptor
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
-
internalGetMapField
protected com.google.protobuf.MapField internalGetMapField(int number)
- Overrides:
internalGetMapFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<ApiVersion.Builder>
-
internalGetMutableMapField
protected com.google.protobuf.MapField internalGetMutableMapField(int number)
- Overrides:
internalGetMutableMapFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<ApiVersion.Builder>
-
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
- Specified by:
internalGetFieldAccessorTablein classcom.google.protobuf.GeneratedMessageV3.Builder<ApiVersion.Builder>
-
clear
public ApiVersion.Builder clear()
- Specified by:
clearin interfacecom.google.protobuf.Message.Builder- Specified by:
clearin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
clearin classcom.google.protobuf.GeneratedMessageV3.Builder<ApiVersion.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.GeneratedMessageV3.Builder<ApiVersion.Builder>
-
getDefaultInstanceForType
public ApiVersion getDefaultInstanceForType()
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-
build
public ApiVersion build()
- Specified by:
buildin interfacecom.google.protobuf.Message.Builder- Specified by:
buildin interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
public ApiVersion buildPartial()
- Specified by:
buildPartialin interfacecom.google.protobuf.Message.Builder- Specified by:
buildPartialin interfacecom.google.protobuf.MessageLite.Builder
-
clone
public ApiVersion.Builder clone()
- Specified by:
clonein interfacecom.google.protobuf.Message.Builder- Specified by:
clonein interfacecom.google.protobuf.MessageLite.Builder- Overrides:
clonein classcom.google.protobuf.GeneratedMessageV3.Builder<ApiVersion.Builder>
-
setField
public ApiVersion.Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
- Specified by:
setFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
setFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<ApiVersion.Builder>
-
clearField
public ApiVersion.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
- Specified by:
clearFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
clearFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<ApiVersion.Builder>
-
clearOneof
public ApiVersion.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
- Specified by:
clearOneofin interfacecom.google.protobuf.Message.Builder- Overrides:
clearOneofin classcom.google.protobuf.GeneratedMessageV3.Builder<ApiVersion.Builder>
-
setRepeatedField
public ApiVersion.Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)
- Specified by:
setRepeatedFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
setRepeatedFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<ApiVersion.Builder>
-
addRepeatedField
public ApiVersion.Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
- Specified by:
addRepeatedFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
addRepeatedFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<ApiVersion.Builder>
-
mergeFrom
public ApiVersion.Builder mergeFrom(com.google.protobuf.Message other)
- Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<ApiVersion.Builder>
-
mergeFrom
public ApiVersion.Builder mergeFrom(ApiVersion other)
-
isInitialized
public final boolean isInitialized()
- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessageV3.Builder<ApiVersion.Builder>
-
mergeFrom
public ApiVersion.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<ApiVersion.Builder>- Throws:
IOException
-
getName
public String getName()
Resource name.
string name = 1;- Specified by:
getNamein interfaceApiVersionOrBuilder- Returns:
- The name.
-
getNameBytes
public com.google.protobuf.ByteString getNameBytes()
Resource name.
string name = 1;- Specified by:
getNameBytesin interfaceApiVersionOrBuilder- Returns:
- The bytes for name.
-
setName
public ApiVersion.Builder setName(String value)
Resource name.
string name = 1;- Parameters:
value- The name to set.- Returns:
- This builder for chaining.
-
clearName
public ApiVersion.Builder clearName()
Resource name.
string name = 1;- Returns:
- This builder for chaining.
-
setNameBytes
public ApiVersion.Builder setNameBytes(com.google.protobuf.ByteString value)
Resource name.
string name = 1;- Parameters:
value- The bytes for name to set.- Returns:
- This builder for chaining.
-
getDisplayName
public String getDisplayName()
Human-meaningful name.
string display_name = 2;- Specified by:
getDisplayNamein interfaceApiVersionOrBuilder- Returns:
- The displayName.
-
getDisplayNameBytes
public com.google.protobuf.ByteString getDisplayNameBytes()
Human-meaningful name.
string display_name = 2;- Specified by:
getDisplayNameBytesin interfaceApiVersionOrBuilder- Returns:
- The bytes for displayName.
-
setDisplayName
public ApiVersion.Builder setDisplayName(String value)
Human-meaningful name.
string display_name = 2;- Parameters:
value- The displayName to set.- Returns:
- This builder for chaining.
-
clearDisplayName
public ApiVersion.Builder clearDisplayName()
Human-meaningful name.
string display_name = 2;- Returns:
- This builder for chaining.
-
setDisplayNameBytes
public ApiVersion.Builder setDisplayNameBytes(com.google.protobuf.ByteString value)
Human-meaningful name.
string display_name = 2;- Parameters:
value- The bytes for displayName to set.- Returns:
- This builder for chaining.
-
getDescription
public String getDescription()
A detailed description.
string description = 3;- Specified by:
getDescriptionin interfaceApiVersionOrBuilder- Returns:
- The description.
-
getDescriptionBytes
public com.google.protobuf.ByteString getDescriptionBytes()
A detailed description.
string description = 3;- Specified by:
getDescriptionBytesin interfaceApiVersionOrBuilder- Returns:
- The bytes for description.
-
setDescription
public ApiVersion.Builder setDescription(String value)
A detailed description.
string description = 3;- Parameters:
value- The description to set.- Returns:
- This builder for chaining.
-
clearDescription
public ApiVersion.Builder clearDescription()
A detailed description.
string description = 3;- Returns:
- This builder for chaining.
-
setDescriptionBytes
public ApiVersion.Builder setDescriptionBytes(com.google.protobuf.ByteString value)
A detailed description.
string description = 3;- Parameters:
value- The bytes for description to set.- Returns:
- This builder for chaining.
-
hasCreateTime
public boolean hasCreateTime()
Output only. Creation timestamp.
.google.protobuf.Timestamp create_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];- Specified by:
hasCreateTimein interfaceApiVersionOrBuilder- Returns:
- Whether the createTime field is set.
-
getCreateTime
public com.google.protobuf.Timestamp getCreateTime()
Output only. Creation timestamp.
.google.protobuf.Timestamp create_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];- Specified by:
getCreateTimein interfaceApiVersionOrBuilder- Returns:
- The createTime.
-
setCreateTime
public ApiVersion.Builder setCreateTime(com.google.protobuf.Timestamp value)
Output only. Creation timestamp.
.google.protobuf.Timestamp create_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
-
setCreateTime
public ApiVersion.Builder setCreateTime(com.google.protobuf.Timestamp.Builder builderForValue)
Output only. Creation timestamp.
.google.protobuf.Timestamp create_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
-
mergeCreateTime
public ApiVersion.Builder mergeCreateTime(com.google.protobuf.Timestamp value)
Output only. Creation timestamp.
.google.protobuf.Timestamp create_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
-
clearCreateTime
public ApiVersion.Builder clearCreateTime()
Output only. Creation timestamp.
.google.protobuf.Timestamp create_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
-
getCreateTimeBuilder
public com.google.protobuf.Timestamp.Builder getCreateTimeBuilder()
Output only. Creation timestamp.
.google.protobuf.Timestamp create_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
-
getCreateTimeOrBuilder
public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder()
Output only. Creation timestamp.
.google.protobuf.Timestamp create_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];- Specified by:
getCreateTimeOrBuilderin interfaceApiVersionOrBuilder
-
hasUpdateTime
public boolean hasUpdateTime()
Output only. Last update timestamp.
.google.protobuf.Timestamp update_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];- Specified by:
hasUpdateTimein interfaceApiVersionOrBuilder- Returns:
- Whether the updateTime field is set.
-
getUpdateTime
public com.google.protobuf.Timestamp getUpdateTime()
Output only. Last update timestamp.
.google.protobuf.Timestamp update_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];- Specified by:
getUpdateTimein interfaceApiVersionOrBuilder- Returns:
- The updateTime.
-
setUpdateTime
public ApiVersion.Builder setUpdateTime(com.google.protobuf.Timestamp value)
Output only. Last update timestamp.
.google.protobuf.Timestamp update_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];
-
setUpdateTime
public ApiVersion.Builder setUpdateTime(com.google.protobuf.Timestamp.Builder builderForValue)
Output only. Last update timestamp.
.google.protobuf.Timestamp update_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];
-
mergeUpdateTime
public ApiVersion.Builder mergeUpdateTime(com.google.protobuf.Timestamp value)
Output only. Last update timestamp.
.google.protobuf.Timestamp update_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];
-
clearUpdateTime
public ApiVersion.Builder clearUpdateTime()
Output only. Last update timestamp.
.google.protobuf.Timestamp update_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];
-
getUpdateTimeBuilder
public com.google.protobuf.Timestamp.Builder getUpdateTimeBuilder()
Output only. Last update timestamp.
.google.protobuf.Timestamp update_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];
-
getUpdateTimeOrBuilder
public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder()
Output only. Last update timestamp.
.google.protobuf.Timestamp update_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];- Specified by:
getUpdateTimeOrBuilderin interfaceApiVersionOrBuilder
-
getState
public String getState()
A user-definable description of the lifecycle phase of this API version. Format: free-form, but we expect single words that describe API maturity, e.g., "CONCEPT", "DESIGN", "DEVELOPMENT", "STAGING", "PRODUCTION", "DEPRECATED", "RETIRED".
string state = 6;- Specified by:
getStatein interfaceApiVersionOrBuilder- Returns:
- The state.
-
getStateBytes
public com.google.protobuf.ByteString getStateBytes()
A user-definable description of the lifecycle phase of this API version. Format: free-form, but we expect single words that describe API maturity, e.g., "CONCEPT", "DESIGN", "DEVELOPMENT", "STAGING", "PRODUCTION", "DEPRECATED", "RETIRED".
string state = 6;- Specified by:
getStateBytesin interfaceApiVersionOrBuilder- Returns:
- The bytes for state.
-
setState
public ApiVersion.Builder setState(String value)
A user-definable description of the lifecycle phase of this API version. Format: free-form, but we expect single words that describe API maturity, e.g., "CONCEPT", "DESIGN", "DEVELOPMENT", "STAGING", "PRODUCTION", "DEPRECATED", "RETIRED".
string state = 6;- Parameters:
value- The state to set.- Returns:
- This builder for chaining.
-
clearState
public ApiVersion.Builder clearState()
A user-definable description of the lifecycle phase of this API version. Format: free-form, but we expect single words that describe API maturity, e.g., "CONCEPT", "DESIGN", "DEVELOPMENT", "STAGING", "PRODUCTION", "DEPRECATED", "RETIRED".
string state = 6;- Returns:
- This builder for chaining.
-
setStateBytes
public ApiVersion.Builder setStateBytes(com.google.protobuf.ByteString value)
A user-definable description of the lifecycle phase of this API version. Format: free-form, but we expect single words that describe API maturity, e.g., "CONCEPT", "DESIGN", "DEVELOPMENT", "STAGING", "PRODUCTION", "DEPRECATED", "RETIRED".
string state = 6;- Parameters:
value- The bytes for state to set.- Returns:
- This builder for chaining.
-
getLabelsCount
public int getLabelsCount()
Description copied from interface:ApiVersionOrBuilderLabels attach identifying metadata to resources. Identifying metadata can be used to filter list operations. Label keys and values can be no longer than 64 characters (Unicode codepoints), can only contain lowercase letters, numeric characters, underscores and dashes. International characters are allowed. No more than 64 user labels can be associated with one resource (System labels are excluded). See https://goo.gl/xmQnxf for more information and examples of labels. System reserved label keys are prefixed with `apigeeregistry.googleapis.com/` and cannot be changed.
map<string, string> labels = 7;- Specified by:
getLabelsCountin interfaceApiVersionOrBuilder
-
containsLabels
public boolean containsLabels(String key)
Labels attach identifying metadata to resources. Identifying metadata can be used to filter list operations. Label keys and values can be no longer than 64 characters (Unicode codepoints), can only contain lowercase letters, numeric characters, underscores and dashes. International characters are allowed. No more than 64 user labels can be associated with one resource (System labels are excluded). See https://goo.gl/xmQnxf for more information and examples of labels. System reserved label keys are prefixed with `apigeeregistry.googleapis.com/` and cannot be changed.
map<string, string> labels = 7;- Specified by:
containsLabelsin interfaceApiVersionOrBuilder
-
getLabels
@Deprecated public Map<String,String> getLabels()
Deprecated.UsegetLabelsMap()instead.- Specified by:
getLabelsin interfaceApiVersionOrBuilder
-
getLabelsMap
public Map<String,String> getLabelsMap()
Labels attach identifying metadata to resources. Identifying metadata can be used to filter list operations. Label keys and values can be no longer than 64 characters (Unicode codepoints), can only contain lowercase letters, numeric characters, underscores and dashes. International characters are allowed. No more than 64 user labels can be associated with one resource (System labels are excluded). See https://goo.gl/xmQnxf for more information and examples of labels. System reserved label keys are prefixed with `apigeeregistry.googleapis.com/` and cannot be changed.
map<string, string> labels = 7;- Specified by:
getLabelsMapin interfaceApiVersionOrBuilder
-
getLabelsOrDefault
public String getLabelsOrDefault(String key, String defaultValue)
Labels attach identifying metadata to resources. Identifying metadata can be used to filter list operations. Label keys and values can be no longer than 64 characters (Unicode codepoints), can only contain lowercase letters, numeric characters, underscores and dashes. International characters are allowed. No more than 64 user labels can be associated with one resource (System labels are excluded). See https://goo.gl/xmQnxf for more information and examples of labels. System reserved label keys are prefixed with `apigeeregistry.googleapis.com/` and cannot be changed.
map<string, string> labels = 7;- Specified by:
getLabelsOrDefaultin interfaceApiVersionOrBuilder
-
getLabelsOrThrow
public String getLabelsOrThrow(String key)
Labels attach identifying metadata to resources. Identifying metadata can be used to filter list operations. Label keys and values can be no longer than 64 characters (Unicode codepoints), can only contain lowercase letters, numeric characters, underscores and dashes. International characters are allowed. No more than 64 user labels can be associated with one resource (System labels are excluded). See https://goo.gl/xmQnxf for more information and examples of labels. System reserved label keys are prefixed with `apigeeregistry.googleapis.com/` and cannot be changed.
map<string, string> labels = 7;- Specified by:
getLabelsOrThrowin interfaceApiVersionOrBuilder
-
clearLabels
public ApiVersion.Builder clearLabels()
-
removeLabels
public ApiVersion.Builder removeLabels(String key)
Labels attach identifying metadata to resources. Identifying metadata can be used to filter list operations. Label keys and values can be no longer than 64 characters (Unicode codepoints), can only contain lowercase letters, numeric characters, underscores and dashes. International characters are allowed. No more than 64 user labels can be associated with one resource (System labels are excluded). See https://goo.gl/xmQnxf for more information and examples of labels. System reserved label keys are prefixed with `apigeeregistry.googleapis.com/` and cannot be changed.
map<string, string> labels = 7;
-
getMutableLabels
@Deprecated public Map<String,String> getMutableLabels()
Deprecated.Use alternate mutation accessors instead.
-
putLabels
public ApiVersion.Builder putLabels(String key, String value)
Labels attach identifying metadata to resources. Identifying metadata can be used to filter list operations. Label keys and values can be no longer than 64 characters (Unicode codepoints), can only contain lowercase letters, numeric characters, underscores and dashes. International characters are allowed. No more than 64 user labels can be associated with one resource (System labels are excluded). See https://goo.gl/xmQnxf for more information and examples of labels. System reserved label keys are prefixed with `apigeeregistry.googleapis.com/` and cannot be changed.
map<string, string> labels = 7;
-
putAllLabels
public ApiVersion.Builder putAllLabels(Map<String,String> values)
Labels attach identifying metadata to resources. Identifying metadata can be used to filter list operations. Label keys and values can be no longer than 64 characters (Unicode codepoints), can only contain lowercase letters, numeric characters, underscores and dashes. International characters are allowed. No more than 64 user labels can be associated with one resource (System labels are excluded). See https://goo.gl/xmQnxf for more information and examples of labels. System reserved label keys are prefixed with `apigeeregistry.googleapis.com/` and cannot be changed.
map<string, string> labels = 7;
-
getAnnotationsCount
public int getAnnotationsCount()
Description copied from interface:ApiVersionOrBuilderAnnotations attach non-identifying metadata to resources. Annotation keys and values are less restricted than those of labels, but should be generally used for small values of broad interest. Larger, topic- specific metadata should be stored in Artifacts.
map<string, string> annotations = 8;- Specified by:
getAnnotationsCountin interfaceApiVersionOrBuilder
-
containsAnnotations
public boolean containsAnnotations(String key)
Annotations attach non-identifying metadata to resources. Annotation keys and values are less restricted than those of labels, but should be generally used for small values of broad interest. Larger, topic- specific metadata should be stored in Artifacts.
map<string, string> annotations = 8;- Specified by:
containsAnnotationsin interfaceApiVersionOrBuilder
-
getAnnotations
@Deprecated public Map<String,String> getAnnotations()
Deprecated.UsegetAnnotationsMap()instead.- Specified by:
getAnnotationsin interfaceApiVersionOrBuilder
-
getAnnotationsMap
public Map<String,String> getAnnotationsMap()
Annotations attach non-identifying metadata to resources. Annotation keys and values are less restricted than those of labels, but should be generally used for small values of broad interest. Larger, topic- specific metadata should be stored in Artifacts.
map<string, string> annotations = 8;- Specified by:
getAnnotationsMapin interfaceApiVersionOrBuilder
-
getAnnotationsOrDefault
public String getAnnotationsOrDefault(String key, String defaultValue)
Annotations attach non-identifying metadata to resources. Annotation keys and values are less restricted than those of labels, but should be generally used for small values of broad interest. Larger, topic- specific metadata should be stored in Artifacts.
map<string, string> annotations = 8;- Specified by:
getAnnotationsOrDefaultin interfaceApiVersionOrBuilder
-
getAnnotationsOrThrow
public String getAnnotationsOrThrow(String key)
Annotations attach non-identifying metadata to resources. Annotation keys and values are less restricted than those of labels, but should be generally used for small values of broad interest. Larger, topic- specific metadata should be stored in Artifacts.
map<string, string> annotations = 8;- Specified by:
getAnnotationsOrThrowin interfaceApiVersionOrBuilder
-
clearAnnotations
public ApiVersion.Builder clearAnnotations()
-
removeAnnotations
public ApiVersion.Builder removeAnnotations(String key)
Annotations attach non-identifying metadata to resources. Annotation keys and values are less restricted than those of labels, but should be generally used for small values of broad interest. Larger, topic- specific metadata should be stored in Artifacts.
map<string, string> annotations = 8;
-
getMutableAnnotations
@Deprecated public Map<String,String> getMutableAnnotations()
Deprecated.Use alternate mutation accessors instead.
-
putAnnotations
public ApiVersion.Builder putAnnotations(String key, String value)
Annotations attach non-identifying metadata to resources. Annotation keys and values are less restricted than those of labels, but should be generally used for small values of broad interest. Larger, topic- specific metadata should be stored in Artifacts.
map<string, string> annotations = 8;
-
putAllAnnotations
public ApiVersion.Builder putAllAnnotations(Map<String,String> values)
Annotations attach non-identifying metadata to resources. Annotation keys and values are less restricted than those of labels, but should be generally used for small values of broad interest. Larger, topic- specific metadata should be stored in Artifacts.
map<string, string> annotations = 8;
-
setUnknownFields
public final ApiVersion.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
- Specified by:
setUnknownFieldsin interfacecom.google.protobuf.Message.Builder- Overrides:
setUnknownFieldsin classcom.google.protobuf.GeneratedMessageV3.Builder<ApiVersion.Builder>
-
mergeUnknownFields
public final ApiVersion.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
- Specified by:
mergeUnknownFieldsin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeUnknownFieldsin classcom.google.protobuf.GeneratedMessageV3.Builder<ApiVersion.Builder>
-
-