Class CustomMetadata.Builder

java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessage.Builder<CustomMetadata.Builder>
com.google.cloud.deploy.v1.CustomMetadata.Builder
All Implemented Interfaces:
CustomMetadataOrBuilder, com.google.protobuf.Message.Builder, com.google.protobuf.MessageLite.Builder, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, Cloneable
Enclosing class:
CustomMetadata

public static final class CustomMetadata.Builder extends com.google.protobuf.GeneratedMessage.Builder<CustomMetadata.Builder> implements CustomMetadataOrBuilder
 CustomMetadata contains information from a user-defined operation.
 
Protobuf type google.cloud.deploy.v1.CustomMetadata
  • 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<CustomMetadata.Builder>
    • internalGetMutableMapFieldReflection

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

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

      public CustomMetadata.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<CustomMetadata.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<CustomMetadata.Builder>
    • getDefaultInstanceForType

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

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

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

      public CustomMetadata.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<CustomMetadata.Builder>
    • mergeFrom

      public CustomMetadata.Builder mergeFrom(CustomMetadata other)
    • isInitialized

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

      public CustomMetadata.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<CustomMetadata.Builder>
      Throws:
      IOException
    • getValuesCount

      public int getValuesCount()
      Description copied from interface: CustomMetadataOrBuilder
       Output only. Key-value pairs provided by the user-defined operation.
       
      map<string, string> values = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getValuesCount in interface CustomMetadataOrBuilder
    • containsValues

      public boolean containsValues(String key)
       Output only. Key-value pairs provided by the user-defined operation.
       
      map<string, string> values = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      containsValues in interface CustomMetadataOrBuilder
    • getValues

      @Deprecated public Map<String,String> getValues()
      Deprecated.
      Use getValuesMap() instead.
      Specified by:
      getValues in interface CustomMetadataOrBuilder
    • getValuesMap

      public Map<String,String> getValuesMap()
       Output only. Key-value pairs provided by the user-defined operation.
       
      map<string, string> values = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getValuesMap in interface CustomMetadataOrBuilder
    • getValuesOrDefault

      public String getValuesOrDefault(String key, String defaultValue)
       Output only. Key-value pairs provided by the user-defined operation.
       
      map<string, string> values = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getValuesOrDefault in interface CustomMetadataOrBuilder
    • getValuesOrThrow

      public String getValuesOrThrow(String key)
       Output only. Key-value pairs provided by the user-defined operation.
       
      map<string, string> values = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getValuesOrThrow in interface CustomMetadataOrBuilder
    • clearValues

      public CustomMetadata.Builder clearValues()
    • removeValues

      public CustomMetadata.Builder removeValues(String key)
       Output only. Key-value pairs provided by the user-defined operation.
       
      map<string, string> values = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
    • getMutableValues

      @Deprecated public Map<String,String> getMutableValues()
      Deprecated.
      Use alternate mutation accessors instead.
    • putValues

      public CustomMetadata.Builder putValues(String key, String value)
       Output only. Key-value pairs provided by the user-defined operation.
       
      map<string, string> values = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
    • putAllValues

      public CustomMetadata.Builder putAllValues(Map<String,String> values)
       Output only. Key-value pairs provided by the user-defined operation.
       
      map<string, string> values = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];