Class Api.Builder
- java.lang.Object
-
- com.google.protobuf.AbstractMessageLite.Builder
-
- com.google.protobuf.AbstractMessage.Builder<BuilderT>
-
- com.google.protobuf.GeneratedMessageV3.Builder<Api.Builder>
-
- com.google.cloud.apigeeregistry.v1.Api.Builder
-
- All Implemented Interfaces:
ApiOrBuilder
,com.google.protobuf.Message.Builder
,com.google.protobuf.MessageLite.Builder
,com.google.protobuf.MessageLiteOrBuilder
,com.google.protobuf.MessageOrBuilder
,Cloneable
- Enclosing class:
- Api
public static final class Api.Builder extends com.google.protobuf.GeneratedMessageV3.Builder<Api.Builder> implements ApiOrBuilder
A top-level description of an API. Produced by producers and are commitments to provide services.
Protobuf typegoogle.cloud.apigeeregistry.v1.Api
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description Api.Builder
addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
Api
build()
Api
buildPartial()
Api.Builder
clear()
Api.Builder
clearAnnotations()
Api.Builder
clearAvailability()
A user-definable description of the availability of this service.Api.Builder
clearCreateTime()
Output only.Api.Builder
clearDescription()
A detailed description.Api.Builder
clearDisplayName()
Human-meaningful name.Api.Builder
clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
Api.Builder
clearLabels()
Api.Builder
clearName()
Resource name.Api.Builder
clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
Api.Builder
clearRecommendedDeployment()
The recommended deployment of the API.Api.Builder
clearRecommendedVersion()
The recommended version of the API.Api.Builder
clearUpdateTime()
Output only.Api.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.String
getAvailability()
A user-definable description of the availability of this service.com.google.protobuf.ByteString
getAvailabilityBytes()
A user-definable description of the availability of this service.com.google.protobuf.Timestamp
getCreateTime()
Output only.com.google.protobuf.Timestamp.Builder
getCreateTimeBuilder()
Output only.com.google.protobuf.TimestampOrBuilder
getCreateTimeOrBuilder()
Output only.Api
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
getRecommendedDeployment()
The recommended deployment of the API.com.google.protobuf.ByteString
getRecommendedDeploymentBytes()
The recommended deployment of the API.String
getRecommendedVersion()
The recommended version of the API.com.google.protobuf.ByteString
getRecommendedVersionBytes()
The recommended version of the API.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()
Api.Builder
mergeCreateTime(com.google.protobuf.Timestamp value)
Output only.Api.Builder
mergeFrom(Api other)
Api.Builder
mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
Api.Builder
mergeFrom(com.google.protobuf.Message other)
Api.Builder
mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
Api.Builder
mergeUpdateTime(com.google.protobuf.Timestamp value)
Output only.Api.Builder
putAllAnnotations(Map<String,String> values)
Annotations attach non-identifying metadata to resources.Api.Builder
putAllLabels(Map<String,String> values)
Labels attach identifying metadata to resources.Api.Builder
putAnnotations(String key, String value)
Annotations attach non-identifying metadata to resources.Api.Builder
putLabels(String key, String value)
Labels attach identifying metadata to resources.Api.Builder
removeAnnotations(String key)
Annotations attach non-identifying metadata to resources.Api.Builder
removeLabels(String key)
Labels attach identifying metadata to resources.Api.Builder
setAvailability(String value)
A user-definable description of the availability of this service.Api.Builder
setAvailabilityBytes(com.google.protobuf.ByteString value)
A user-definable description of the availability of this service.Api.Builder
setCreateTime(com.google.protobuf.Timestamp value)
Output only.Api.Builder
setCreateTime(com.google.protobuf.Timestamp.Builder builderForValue)
Output only.Api.Builder
setDescription(String value)
A detailed description.Api.Builder
setDescriptionBytes(com.google.protobuf.ByteString value)
A detailed description.Api.Builder
setDisplayName(String value)
Human-meaningful name.Api.Builder
setDisplayNameBytes(com.google.protobuf.ByteString value)
Human-meaningful name.Api.Builder
setField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
Api.Builder
setName(String value)
Resource name.Api.Builder
setNameBytes(com.google.protobuf.ByteString value)
Resource name.Api.Builder
setRecommendedDeployment(String value)
The recommended deployment of the API.Api.Builder
setRecommendedDeploymentBytes(com.google.protobuf.ByteString value)
The recommended deployment of the API.Api.Builder
setRecommendedVersion(String value)
The recommended version of the API.Api.Builder
setRecommendedVersionBytes(com.google.protobuf.ByteString value)
The recommended version of the API.Api.Builder
setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)
Api.Builder
setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
Api.Builder
setUpdateTime(com.google.protobuf.Timestamp value)
Output only.Api.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<Api.Builder>
-
internalGetMutableMapField
protected com.google.protobuf.MapField internalGetMutableMapField(int number)
- Overrides:
internalGetMutableMapField
in classcom.google.protobuf.GeneratedMessageV3.Builder<Api.Builder>
-
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
- Specified by:
internalGetFieldAccessorTable
in classcom.google.protobuf.GeneratedMessageV3.Builder<Api.Builder>
-
clear
public Api.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<Api.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<Api.Builder>
-
getDefaultInstanceForType
public Api getDefaultInstanceForType()
- Specified by:
getDefaultInstanceForType
in interfacecom.google.protobuf.MessageLiteOrBuilder
- Specified by:
getDefaultInstanceForType
in interfacecom.google.protobuf.MessageOrBuilder
-
build
public Api build()
- Specified by:
build
in interfacecom.google.protobuf.Message.Builder
- Specified by:
build
in interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
public Api buildPartial()
- Specified by:
buildPartial
in interfacecom.google.protobuf.Message.Builder
- Specified by:
buildPartial
in interfacecom.google.protobuf.MessageLite.Builder
-
clone
public Api.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<Api.Builder>
-
setField
public Api.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<Api.Builder>
-
clearField
public Api.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<Api.Builder>
-
clearOneof
public Api.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<Api.Builder>
-
setRepeatedField
public Api.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<Api.Builder>
-
addRepeatedField
public Api.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<Api.Builder>
-
mergeFrom
public Api.Builder mergeFrom(com.google.protobuf.Message other)
- Specified by:
mergeFrom
in interfacecom.google.protobuf.Message.Builder
- Overrides:
mergeFrom
in classcom.google.protobuf.AbstractMessage.Builder<Api.Builder>
-
mergeFrom
public Api.Builder mergeFrom(Api other)
-
isInitialized
public final boolean isInitialized()
- Specified by:
isInitialized
in interfacecom.google.protobuf.MessageLiteOrBuilder
- Overrides:
isInitialized
in classcom.google.protobuf.GeneratedMessageV3.Builder<Api.Builder>
-
mergeFrom
public Api.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<Api.Builder>
- Throws:
IOException
-
getName
public String getName()
Resource name.
string name = 1;
- Specified by:
getName
in interfaceApiOrBuilder
- Returns:
- The name.
-
getNameBytes
public com.google.protobuf.ByteString getNameBytes()
Resource name.
string name = 1;
- Specified by:
getNameBytes
in interfaceApiOrBuilder
- Returns:
- The bytes for name.
-
setName
public Api.Builder setName(String value)
Resource name.
string name = 1;
- Parameters:
value
- The name to set.- Returns:
- This builder for chaining.
-
clearName
public Api.Builder clearName()
Resource name.
string name = 1;
- Returns:
- This builder for chaining.
-
setNameBytes
public Api.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 interfaceApiOrBuilder
- Returns:
- The displayName.
-
getDisplayNameBytes
public com.google.protobuf.ByteString getDisplayNameBytes()
Human-meaningful name.
string display_name = 2;
- Specified by:
getDisplayNameBytes
in interfaceApiOrBuilder
- Returns:
- The bytes for displayName.
-
setDisplayName
public Api.Builder setDisplayName(String value)
Human-meaningful name.
string display_name = 2;
- Parameters:
value
- The displayName to set.- Returns:
- This builder for chaining.
-
clearDisplayName
public Api.Builder clearDisplayName()
Human-meaningful name.
string display_name = 2;
- Returns:
- This builder for chaining.
-
setDisplayNameBytes
public Api.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 interfaceApiOrBuilder
- Returns:
- The description.
-
getDescriptionBytes
public com.google.protobuf.ByteString getDescriptionBytes()
A detailed description.
string description = 3;
- Specified by:
getDescriptionBytes
in interfaceApiOrBuilder
- Returns:
- The bytes for description.
-
setDescription
public Api.Builder setDescription(String value)
A detailed description.
string description = 3;
- Parameters:
value
- The description to set.- Returns:
- This builder for chaining.
-
clearDescription
public Api.Builder clearDescription()
A detailed description.
string description = 3;
- Returns:
- This builder for chaining.
-
setDescriptionBytes
public Api.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 interfaceApiOrBuilder
- 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 interfaceApiOrBuilder
- Returns:
- The createTime.
-
setCreateTime
public Api.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 Api.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 Api.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 Api.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 interfaceApiOrBuilder
-
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 interfaceApiOrBuilder
- 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 interfaceApiOrBuilder
- Returns:
- The updateTime.
-
setUpdateTime
public Api.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 Api.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 Api.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 Api.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 interfaceApiOrBuilder
-
getAvailability
public String getAvailability()
A user-definable description of the availability of this service. Format: free-form, but we expect single words that describe availability, e.g., "NONE", "TESTING", "PREVIEW", "GENERAL", "DEPRECATED", "SHUTDOWN".
string availability = 6;
- Specified by:
getAvailability
in interfaceApiOrBuilder
- Returns:
- The availability.
-
getAvailabilityBytes
public com.google.protobuf.ByteString getAvailabilityBytes()
A user-definable description of the availability of this service. Format: free-form, but we expect single words that describe availability, e.g., "NONE", "TESTING", "PREVIEW", "GENERAL", "DEPRECATED", "SHUTDOWN".
string availability = 6;
- Specified by:
getAvailabilityBytes
in interfaceApiOrBuilder
- Returns:
- The bytes for availability.
-
setAvailability
public Api.Builder setAvailability(String value)
A user-definable description of the availability of this service. Format: free-form, but we expect single words that describe availability, e.g., "NONE", "TESTING", "PREVIEW", "GENERAL", "DEPRECATED", "SHUTDOWN".
string availability = 6;
- Parameters:
value
- The availability to set.- Returns:
- This builder for chaining.
-
clearAvailability
public Api.Builder clearAvailability()
A user-definable description of the availability of this service. Format: free-form, but we expect single words that describe availability, e.g., "NONE", "TESTING", "PREVIEW", "GENERAL", "DEPRECATED", "SHUTDOWN".
string availability = 6;
- Returns:
- This builder for chaining.
-
setAvailabilityBytes
public Api.Builder setAvailabilityBytes(com.google.protobuf.ByteString value)
A user-definable description of the availability of this service. Format: free-form, but we expect single words that describe availability, e.g., "NONE", "TESTING", "PREVIEW", "GENERAL", "DEPRECATED", "SHUTDOWN".
string availability = 6;
- Parameters:
value
- The bytes for availability to set.- Returns:
- This builder for chaining.
-
getRecommendedVersion
public String getRecommendedVersion()
The recommended version of the API. Format: `apis/{api}/versions/{version}`
string recommended_version = 7 [(.google.api.resource_reference) = { ... }
- Specified by:
getRecommendedVersion
in interfaceApiOrBuilder
- Returns:
- The recommendedVersion.
-
getRecommendedVersionBytes
public com.google.protobuf.ByteString getRecommendedVersionBytes()
The recommended version of the API. Format: `apis/{api}/versions/{version}`
string recommended_version = 7 [(.google.api.resource_reference) = { ... }
- Specified by:
getRecommendedVersionBytes
in interfaceApiOrBuilder
- Returns:
- The bytes for recommendedVersion.
-
setRecommendedVersion
public Api.Builder setRecommendedVersion(String value)
The recommended version of the API. Format: `apis/{api}/versions/{version}`
string recommended_version = 7 [(.google.api.resource_reference) = { ... }
- Parameters:
value
- The recommendedVersion to set.- Returns:
- This builder for chaining.
-
clearRecommendedVersion
public Api.Builder clearRecommendedVersion()
The recommended version of the API. Format: `apis/{api}/versions/{version}`
string recommended_version = 7 [(.google.api.resource_reference) = { ... }
- Returns:
- This builder for chaining.
-
setRecommendedVersionBytes
public Api.Builder setRecommendedVersionBytes(com.google.protobuf.ByteString value)
The recommended version of the API. Format: `apis/{api}/versions/{version}`
string recommended_version = 7 [(.google.api.resource_reference) = { ... }
- Parameters:
value
- The bytes for recommendedVersion to set.- Returns:
- This builder for chaining.
-
getRecommendedDeployment
public String getRecommendedDeployment()
The recommended deployment of the API. Format: `apis/{api}/deployments/{deployment}`
string recommended_deployment = 8 [(.google.api.resource_reference) = { ... }
- Specified by:
getRecommendedDeployment
in interfaceApiOrBuilder
- Returns:
- The recommendedDeployment.
-
getRecommendedDeploymentBytes
public com.google.protobuf.ByteString getRecommendedDeploymentBytes()
The recommended deployment of the API. Format: `apis/{api}/deployments/{deployment}`
string recommended_deployment = 8 [(.google.api.resource_reference) = { ... }
- Specified by:
getRecommendedDeploymentBytes
in interfaceApiOrBuilder
- Returns:
- The bytes for recommendedDeployment.
-
setRecommendedDeployment
public Api.Builder setRecommendedDeployment(String value)
The recommended deployment of the API. Format: `apis/{api}/deployments/{deployment}`
string recommended_deployment = 8 [(.google.api.resource_reference) = { ... }
- Parameters:
value
- The recommendedDeployment to set.- Returns:
- This builder for chaining.
-
clearRecommendedDeployment
public Api.Builder clearRecommendedDeployment()
The recommended deployment of the API. Format: `apis/{api}/deployments/{deployment}`
string recommended_deployment = 8 [(.google.api.resource_reference) = { ... }
- Returns:
- This builder for chaining.
-
setRecommendedDeploymentBytes
public Api.Builder setRecommendedDeploymentBytes(com.google.protobuf.ByteString value)
The recommended deployment of the API. Format: `apis/{api}/deployments/{deployment}`
string recommended_deployment = 8 [(.google.api.resource_reference) = { ... }
- Parameters:
value
- The bytes for recommendedDeployment to set.- Returns:
- This builder for chaining.
-
getLabelsCount
public int getLabelsCount()
Description copied from interface:ApiOrBuilder
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 = 9;
- Specified by:
getLabelsCount
in interfaceApiOrBuilder
-
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 = 9;
- Specified by:
containsLabels
in interfaceApiOrBuilder
-
getLabels
@Deprecated public Map<String,String> getLabels()
Deprecated.UsegetLabelsMap()
instead.- Specified by:
getLabels
in interfaceApiOrBuilder
-
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 = 9;
- Specified by:
getLabelsMap
in interfaceApiOrBuilder
-
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 = 9;
- Specified by:
getLabelsOrDefault
in interfaceApiOrBuilder
-
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 = 9;
- Specified by:
getLabelsOrThrow
in interfaceApiOrBuilder
-
clearLabels
public Api.Builder clearLabels()
-
removeLabels
public Api.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 = 9;
-
getMutableLabels
@Deprecated public Map<String,String> getMutableLabels()
Deprecated.Use alternate mutation accessors instead.
-
putLabels
public Api.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 = 9;
-
putAllLabels
public Api.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 = 9;
-
getAnnotationsCount
public int getAnnotationsCount()
Description copied from interface:ApiOrBuilder
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 = 10;
- Specified by:
getAnnotationsCount
in interfaceApiOrBuilder
-
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 = 10;
- Specified by:
containsAnnotations
in interfaceApiOrBuilder
-
getAnnotations
@Deprecated public Map<String,String> getAnnotations()
Deprecated.UsegetAnnotationsMap()
instead.- Specified by:
getAnnotations
in interfaceApiOrBuilder
-
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 = 10;
- Specified by:
getAnnotationsMap
in interfaceApiOrBuilder
-
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 = 10;
- Specified by:
getAnnotationsOrDefault
in interfaceApiOrBuilder
-
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 = 10;
- Specified by:
getAnnotationsOrThrow
in interfaceApiOrBuilder
-
clearAnnotations
public Api.Builder clearAnnotations()
-
removeAnnotations
public Api.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 = 10;
-
getMutableAnnotations
@Deprecated public Map<String,String> getMutableAnnotations()
Deprecated.Use alternate mutation accessors instead.
-
putAnnotations
public Api.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 = 10;
-
putAllAnnotations
public Api.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 = 10;
-
setUnknownFields
public final Api.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
- Specified by:
setUnknownFields
in interfacecom.google.protobuf.Message.Builder
- Overrides:
setUnknownFields
in classcom.google.protobuf.GeneratedMessageV3.Builder<Api.Builder>
-
mergeUnknownFields
public final Api.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
- Specified by:
mergeUnknownFields
in interfacecom.google.protobuf.Message.Builder
- Overrides:
mergeUnknownFields
in classcom.google.protobuf.GeneratedMessageV3.Builder<Api.Builder>
-
-