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.Builder
addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
ApiVersion
build()
ApiVersion
buildPartial()
ApiVersion.Builder
clear()
ApiVersion.Builder
clearAnnotations()
ApiVersion.Builder
clearCreateTime()
Output only.ApiVersion.Builder
clearDescription()
A detailed description.ApiVersion.Builder
clearDisplayName()
Human-meaningful name.ApiVersion.Builder
clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
ApiVersion.Builder
clearLabels()
ApiVersion.Builder
clearName()
Resource name.ApiVersion.Builder
clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
ApiVersion.Builder
clearState()
A user-definable description of the lifecycle phase of this API version.ApiVersion.Builder
clearUpdateTime()
Output only.ApiVersion.Builder
clone()
boolean
containsAnnotations(String key)
Annotations attach non-identifying metadata to resources.boolean
containsLabels(String key)
Labels attach identifying metadata to resources.Map<String,String>
getAnnotations()
Deprecated.int
getAnnotationsCount()
Annotations attach non-identifying metadata to resources.Map<String,String>
getAnnotationsMap()
Annotations attach non-identifying metadata to resources.String
getAnnotationsOrDefault(String key, String defaultValue)
Annotations attach non-identifying metadata to resources.String
getAnnotationsOrThrow(String key)
Annotations attach non-identifying metadata to resources.com.google.protobuf.Timestamp
getCreateTime()
Output only.com.google.protobuf.Timestamp.Builder
getCreateTimeBuilder()
Output only.com.google.protobuf.TimestampOrBuilder
getCreateTimeOrBuilder()
Output only.ApiVersion
getDefaultInstanceForType()
String
getDescription()
A detailed description.com.google.protobuf.ByteString
getDescriptionBytes()
A detailed description.static com.google.protobuf.Descriptors.Descriptor
getDescriptor()
com.google.protobuf.Descriptors.Descriptor
getDescriptorForType()
String
getDisplayName()
Human-meaningful name.com.google.protobuf.ByteString
getDisplayNameBytes()
Human-meaningful name.Map<String,String>
getLabels()
Deprecated.int
getLabelsCount()
Labels attach identifying metadata to resources.Map<String,String>
getLabelsMap()
Labels attach identifying metadata to resources.String
getLabelsOrDefault(String key, String defaultValue)
Labels attach identifying metadata to resources.String
getLabelsOrThrow(String key)
Labels attach identifying metadata to resources.Map<String,String>
getMutableAnnotations()
Deprecated.Map<String,String>
getMutableLabels()
Deprecated.String
getName()
Resource name.com.google.protobuf.ByteString
getNameBytes()
Resource name.String
getState()
A user-definable description of the lifecycle phase of this API version.com.google.protobuf.ByteString
getStateBytes()
A user-definable description of the lifecycle phase of this API version.com.google.protobuf.Timestamp
getUpdateTime()
Output only.com.google.protobuf.Timestamp.Builder
getUpdateTimeBuilder()
Output only.com.google.protobuf.TimestampOrBuilder
getUpdateTimeOrBuilder()
Output only.boolean
hasCreateTime()
Output only.boolean
hasUpdateTime()
Output only.protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable()
protected com.google.protobuf.MapField
internalGetMapField(int number)
protected com.google.protobuf.MapField
internalGetMutableMapField(int number)
boolean
isInitialized()
ApiVersion.Builder
mergeCreateTime(com.google.protobuf.Timestamp value)
Output only.ApiVersion.Builder
mergeFrom(ApiVersion other)
ApiVersion.Builder
mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
ApiVersion.Builder
mergeFrom(com.google.protobuf.Message other)
ApiVersion.Builder
mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
ApiVersion.Builder
mergeUpdateTime(com.google.protobuf.Timestamp value)
Output only.ApiVersion.Builder
putAllAnnotations(Map<String,String> values)
Annotations attach non-identifying metadata to resources.ApiVersion.Builder
putAllLabels(Map<String,String> values)
Labels attach identifying metadata to resources.ApiVersion.Builder
putAnnotations(String key, String value)
Annotations attach non-identifying metadata to resources.ApiVersion.Builder
putLabels(String key, String value)
Labels attach identifying metadata to resources.ApiVersion.Builder
removeAnnotations(String key)
Annotations attach non-identifying metadata to resources.ApiVersion.Builder
removeLabels(String key)
Labels attach identifying metadata to resources.ApiVersion.Builder
setCreateTime(com.google.protobuf.Timestamp value)
Output only.ApiVersion.Builder
setCreateTime(com.google.protobuf.Timestamp.Builder builderForValue)
Output only.ApiVersion.Builder
setDescription(String value)
A detailed description.ApiVersion.Builder
setDescriptionBytes(com.google.protobuf.ByteString value)
A detailed description.ApiVersion.Builder
setDisplayName(String value)
Human-meaningful name.ApiVersion.Builder
setDisplayNameBytes(com.google.protobuf.ByteString value)
Human-meaningful name.ApiVersion.Builder
setField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
ApiVersion.Builder
setName(String value)
Resource name.ApiVersion.Builder
setNameBytes(com.google.protobuf.ByteString value)
Resource name.ApiVersion.Builder
setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)
ApiVersion.Builder
setState(String value)
A user-definable description of the lifecycle phase of this API version.ApiVersion.Builder
setStateBytes(com.google.protobuf.ByteString value)
A user-definable description of the lifecycle phase of this API version.ApiVersion.Builder
setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
ApiVersion.Builder
setUpdateTime(com.google.protobuf.Timestamp value)
Output only.ApiVersion.Builder
setUpdateTime(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:
internalGetMapField
in classcom.google.protobuf.GeneratedMessageV3.Builder<ApiVersion.Builder>
-
internalGetMutableMapField
protected com.google.protobuf.MapField internalGetMutableMapField(int number)
- Overrides:
internalGetMutableMapField
in classcom.google.protobuf.GeneratedMessageV3.Builder<ApiVersion.Builder>
-
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
- Specified by:
internalGetFieldAccessorTable
in classcom.google.protobuf.GeneratedMessageV3.Builder<ApiVersion.Builder>
-
clear
public ApiVersion.Builder clear()
- Specified by:
clear
in interfacecom.google.protobuf.Message.Builder
- Specified by:
clear
in interfacecom.google.protobuf.MessageLite.Builder
- Overrides:
clear
in classcom.google.protobuf.GeneratedMessageV3.Builder<ApiVersion.Builder>
-
getDescriptorForType
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
- Specified by:
getDescriptorForType
in interfacecom.google.protobuf.Message.Builder
- Specified by:
getDescriptorForType
in interfacecom.google.protobuf.MessageOrBuilder
- Overrides:
getDescriptorForType
in classcom.google.protobuf.GeneratedMessageV3.Builder<ApiVersion.Builder>
-
getDefaultInstanceForType
public ApiVersion getDefaultInstanceForType()
- Specified by:
getDefaultInstanceForType
in interfacecom.google.protobuf.MessageLiteOrBuilder
- Specified by:
getDefaultInstanceForType
in interfacecom.google.protobuf.MessageOrBuilder
-
build
public ApiVersion build()
- Specified by:
build
in interfacecom.google.protobuf.Message.Builder
- Specified by:
build
in interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
public ApiVersion buildPartial()
- Specified by:
buildPartial
in interfacecom.google.protobuf.Message.Builder
- Specified by:
buildPartial
in interfacecom.google.protobuf.MessageLite.Builder
-
clone
public ApiVersion.Builder clone()
- Specified by:
clone
in interfacecom.google.protobuf.Message.Builder
- Specified by:
clone
in interfacecom.google.protobuf.MessageLite.Builder
- Overrides:
clone
in classcom.google.protobuf.GeneratedMessageV3.Builder<ApiVersion.Builder>
-
setField
public ApiVersion.Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
- Specified by:
setField
in interfacecom.google.protobuf.Message.Builder
- Overrides:
setField
in classcom.google.protobuf.GeneratedMessageV3.Builder<ApiVersion.Builder>
-
clearField
public ApiVersion.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
- Specified by:
clearField
in interfacecom.google.protobuf.Message.Builder
- Overrides:
clearField
in classcom.google.protobuf.GeneratedMessageV3.Builder<ApiVersion.Builder>
-
clearOneof
public ApiVersion.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
- Specified by:
clearOneof
in interfacecom.google.protobuf.Message.Builder
- Overrides:
clearOneof
in classcom.google.protobuf.GeneratedMessageV3.Builder<ApiVersion.Builder>
-
setRepeatedField
public ApiVersion.Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)
- Specified by:
setRepeatedField
in interfacecom.google.protobuf.Message.Builder
- Overrides:
setRepeatedField
in classcom.google.protobuf.GeneratedMessageV3.Builder<ApiVersion.Builder>
-
addRepeatedField
public ApiVersion.Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
- Specified by:
addRepeatedField
in interfacecom.google.protobuf.Message.Builder
- Overrides:
addRepeatedField
in classcom.google.protobuf.GeneratedMessageV3.Builder<ApiVersion.Builder>
-
mergeFrom
public ApiVersion.Builder mergeFrom(com.google.protobuf.Message other)
- Specified by:
mergeFrom
in interfacecom.google.protobuf.Message.Builder
- Overrides:
mergeFrom
in classcom.google.protobuf.AbstractMessage.Builder<ApiVersion.Builder>
-
mergeFrom
public ApiVersion.Builder mergeFrom(ApiVersion other)
-
isInitialized
public final boolean isInitialized()
- Specified by:
isInitialized
in interfacecom.google.protobuf.MessageLiteOrBuilder
- Overrides:
isInitialized
in 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:
mergeFrom
in interfacecom.google.protobuf.Message.Builder
- Specified by:
mergeFrom
in interfacecom.google.protobuf.MessageLite.Builder
- Overrides:
mergeFrom
in classcom.google.protobuf.AbstractMessage.Builder<ApiVersion.Builder>
- Throws:
IOException
-
getName
public String getName()
Resource name.
string name = 1;
- Specified by:
getName
in interfaceApiVersionOrBuilder
- Returns:
- The name.
-
getNameBytes
public com.google.protobuf.ByteString getNameBytes()
Resource name.
string name = 1;
- Specified by:
getNameBytes
in 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:
getDisplayName
in interfaceApiVersionOrBuilder
- Returns:
- The displayName.
-
getDisplayNameBytes
public com.google.protobuf.ByteString getDisplayNameBytes()
Human-meaningful name.
string display_name = 2;
- Specified by:
getDisplayNameBytes
in 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:
getDescription
in interfaceApiVersionOrBuilder
- Returns:
- The description.
-
getDescriptionBytes
public com.google.protobuf.ByteString getDescriptionBytes()
A detailed description.
string description = 3;
- Specified by:
getDescriptionBytes
in 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:
hasCreateTime
in 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:
getCreateTime
in 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:
getCreateTimeOrBuilder
in interfaceApiVersionOrBuilder
-
hasUpdateTime
public boolean hasUpdateTime()
Output only. Last update timestamp.
.google.protobuf.Timestamp update_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];
- Specified by:
hasUpdateTime
in 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:
getUpdateTime
in 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:
getUpdateTimeOrBuilder
in 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:
getState
in 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:
getStateBytes
in 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:ApiVersionOrBuilder
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:
getLabelsCount
in 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:
containsLabels
in interfaceApiVersionOrBuilder
-
getLabels
@Deprecated public Map<String,String> getLabels()
Deprecated.UsegetLabelsMap()
instead.- Specified by:
getLabels
in 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:
getLabelsMap
in 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:
getLabelsOrDefault
in 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:
getLabelsOrThrow
in 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:ApiVersionOrBuilder
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:
getAnnotationsCount
in 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:
containsAnnotations
in interfaceApiVersionOrBuilder
-
getAnnotations
@Deprecated public Map<String,String> getAnnotations()
Deprecated.UsegetAnnotationsMap()
instead.- Specified by:
getAnnotations
in 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:
getAnnotationsMap
in 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:
getAnnotationsOrDefault
in 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:
getAnnotationsOrThrow
in 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:
setUnknownFields
in interfacecom.google.protobuf.Message.Builder
- Overrides:
setUnknownFields
in classcom.google.protobuf.GeneratedMessageV3.Builder<ApiVersion.Builder>
-
mergeUnknownFields
public final ApiVersion.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
- Specified by:
mergeUnknownFields
in interfacecom.google.protobuf.Message.Builder
- Overrides:
mergeUnknownFields
in classcom.google.protobuf.GeneratedMessageV3.Builder<ApiVersion.Builder>
-
-