Class Api.Builder

java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessage.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.GeneratedMessage.Builder<Api.Builder> implements ApiOrBuilder
 A top-level description of an API.
 Produced by producers and are commitments to provide services.
 
Protobuf type google.cloud.apigeeregistry.v1.Api
  • Method Details

    • getDescriptor

      public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
    • internalGetMapFieldReflection

      protected com.google.protobuf.MapFieldReflectionAccessor internalGetMapFieldReflection(int number)
      Overrides:
      internalGetMapFieldReflection in class com.google.protobuf.GeneratedMessage.Builder<Api.Builder>
    • internalGetMutableMapFieldReflection

      protected com.google.protobuf.MapFieldReflectionAccessor internalGetMutableMapFieldReflection(int number)
      Overrides:
      internalGetMutableMapFieldReflection in class com.google.protobuf.GeneratedMessage.Builder<Api.Builder>
    • internalGetFieldAccessorTable

      protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()
      Specified by:
      internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessage.Builder<Api.Builder>
    • clear

      public Api.Builder clear()
      Specified by:
      clear in interface com.google.protobuf.Message.Builder
      Specified by:
      clear in interface com.google.protobuf.MessageLite.Builder
      Overrides:
      clear in class com.google.protobuf.GeneratedMessage.Builder<Api.Builder>
    • getDescriptorForType

      public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
      Specified by:
      getDescriptorForType in interface com.google.protobuf.Message.Builder
      Specified by:
      getDescriptorForType in interface com.google.protobuf.MessageOrBuilder
      Overrides:
      getDescriptorForType in class com.google.protobuf.GeneratedMessage.Builder<Api.Builder>
    • getDefaultInstanceForType

      public Api getDefaultInstanceForType()
      Specified by:
      getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuilder
      Specified by:
      getDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilder
    • build

      public Api build()
      Specified by:
      build in interface com.google.protobuf.Message.Builder
      Specified by:
      build in interface com.google.protobuf.MessageLite.Builder
    • buildPartial

      public Api buildPartial()
      Specified by:
      buildPartial in interface com.google.protobuf.Message.Builder
      Specified by:
      buildPartial in interface com.google.protobuf.MessageLite.Builder
    • mergeFrom

      public Api.Builder mergeFrom(com.google.protobuf.Message other)
      Specified by:
      mergeFrom in interface com.google.protobuf.Message.Builder
      Overrides:
      mergeFrom in class com.google.protobuf.AbstractMessage.Builder<Api.Builder>
    • mergeFrom

      public Api.Builder mergeFrom(Api other)
    • isInitialized

      public final boolean isInitialized()
      Specified by:
      isInitialized in interface com.google.protobuf.MessageLiteOrBuilder
      Overrides:
      isInitialized in class com.google.protobuf.GeneratedMessage.Builder<Api.Builder>
    • mergeFrom

      public Api.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
      Specified by:
      mergeFrom in interface com.google.protobuf.Message.Builder
      Specified by:
      mergeFrom in interface com.google.protobuf.MessageLite.Builder
      Overrides:
      mergeFrom in class com.google.protobuf.AbstractMessage.Builder<Api.Builder>
      Throws:
      IOException
    • getName

      public String getName()
       Resource name.
       
      string name = 1;
      Specified by:
      getName in interface ApiOrBuilder
      Returns:
      The name.
    • getNameBytes

      public com.google.protobuf.ByteString getNameBytes()
       Resource name.
       
      string name = 1;
      Specified by:
      getNameBytes in interface ApiOrBuilder
      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 interface ApiOrBuilder
      Returns:
      The displayName.
    • getDisplayNameBytes

      public com.google.protobuf.ByteString getDisplayNameBytes()
       Human-meaningful name.
       
      string display_name = 2;
      Specified by:
      getDisplayNameBytes in interface ApiOrBuilder
      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 interface ApiOrBuilder
      Returns:
      The description.
    • getDescriptionBytes

      public com.google.protobuf.ByteString getDescriptionBytes()
       A detailed description.
       
      string description = 3;
      Specified by:
      getDescriptionBytes in interface ApiOrBuilder
      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 interface ApiOrBuilder
      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 interface ApiOrBuilder
      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 interface ApiOrBuilder
    • 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 interface ApiOrBuilder
      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 interface ApiOrBuilder
      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 interface ApiOrBuilder
    • 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 interface ApiOrBuilder
      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 interface ApiOrBuilder
      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 interface ApiOrBuilder
      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 interface ApiOrBuilder
      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 interface ApiOrBuilder
      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 interface ApiOrBuilder
      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 interface ApiOrBuilder
    • 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 interface ApiOrBuilder
    • getLabels

      @Deprecated public Map<String,String> getLabels()
      Deprecated.
      Use getLabelsMap() instead.
      Specified by:
      getLabels in interface ApiOrBuilder
    • 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 interface ApiOrBuilder
    • 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 interface ApiOrBuilder
    • 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 interface ApiOrBuilder
    • 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 interface ApiOrBuilder
    • 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 interface ApiOrBuilder
    • getAnnotations

      @Deprecated public Map<String,String> getAnnotations()
      Deprecated.
      Use getAnnotationsMap() instead.
      Specified by:
      getAnnotations in interface ApiOrBuilder
    • 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 interface ApiOrBuilder
    • 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 interface ApiOrBuilder
    • 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 interface ApiOrBuilder
    • 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;