Class Variant.Builder

java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessage.Builder<Variant.Builder>
com.google.cloud.configdelivery.v1beta.Variant.Builder
All Implemented Interfaces:
VariantOrBuilder, com.google.protobuf.Message.Builder, com.google.protobuf.MessageLite.Builder, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, Cloneable
Enclosing class:
Variant

public static final class Variant.Builder extends com.google.protobuf.GeneratedMessage.Builder<Variant.Builder> implements VariantOrBuilder
 Variant represents the content of a `ResourceBundle` variant.
 
Protobuf type google.cloud.configdelivery.v1beta.Variant
  • 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<Variant.Builder>
    • internalGetMutableMapFieldReflection

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

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

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

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

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

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

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

      public Variant.Builder mergeFrom(Variant other)
    • isInitialized

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

      public Variant.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<Variant.Builder>
      Throws:
      IOException
    • getLabelsCount

      public int getLabelsCount()
      Description copied from interface: VariantOrBuilder
       Optional. labels to represent any metadata associated with the variant.
       
      map<string, string> labels = 1 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getLabelsCount in interface VariantOrBuilder
    • containsLabels

      public boolean containsLabels(String key)
       Optional. labels to represent any metadata associated with the variant.
       
      map<string, string> labels = 1 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      containsLabels in interface VariantOrBuilder
    • getLabels

      @Deprecated public Map<String,String> getLabels()
      Deprecated.
      Use getLabelsMap() instead.
      Specified by:
      getLabels in interface VariantOrBuilder
    • getLabelsMap

      public Map<String,String> getLabelsMap()
       Optional. labels to represent any metadata associated with the variant.
       
      map<string, string> labels = 1 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getLabelsMap in interface VariantOrBuilder
    • getLabelsOrDefault

      public String getLabelsOrDefault(String key, String defaultValue)
       Optional. labels to represent any metadata associated with the variant.
       
      map<string, string> labels = 1 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getLabelsOrDefault in interface VariantOrBuilder
    • getLabelsOrThrow

      public String getLabelsOrThrow(String key)
       Optional. labels to represent any metadata associated with the variant.
       
      map<string, string> labels = 1 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getLabelsOrThrow in interface VariantOrBuilder
    • clearLabels

      public Variant.Builder clearLabels()
    • removeLabels

      public Variant.Builder removeLabels(String key)
       Optional. labels to represent any metadata associated with the variant.
       
      map<string, string> labels = 1 [(.google.api.field_behavior) = OPTIONAL];
    • getMutableLabels

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

      public Variant.Builder putLabels(String key, String value)
       Optional. labels to represent any metadata associated with the variant.
       
      map<string, string> labels = 1 [(.google.api.field_behavior) = OPTIONAL];
    • putAllLabels

      public Variant.Builder putAllLabels(Map<String,String> values)
       Optional. labels to represent any metadata associated with the variant.
       
      map<string, string> labels = 1 [(.google.api.field_behavior) = OPTIONAL];
    • getResourcesList

      public com.google.protobuf.ProtocolStringList getResourcesList()
       Required. Input only. Unordered list. resources contain the kubernetes
       manifests (YAMLs) for this variant.
       
      repeated string resources = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = UNORDERED_LIST, (.google.api.field_behavior) = INPUT_ONLY];
      Specified by:
      getResourcesList in interface VariantOrBuilder
      Returns:
      A list containing the resources.
    • getResourcesCount

      public int getResourcesCount()
       Required. Input only. Unordered list. resources contain the kubernetes
       manifests (YAMLs) for this variant.
       
      repeated string resources = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = UNORDERED_LIST, (.google.api.field_behavior) = INPUT_ONLY];
      Specified by:
      getResourcesCount in interface VariantOrBuilder
      Returns:
      The count of resources.
    • getResources

      public String getResources(int index)
       Required. Input only. Unordered list. resources contain the kubernetes
       manifests (YAMLs) for this variant.
       
      repeated string resources = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = UNORDERED_LIST, (.google.api.field_behavior) = INPUT_ONLY];
      Specified by:
      getResources in interface VariantOrBuilder
      Parameters:
      index - The index of the element to return.
      Returns:
      The resources at the given index.
    • getResourcesBytes

      public com.google.protobuf.ByteString getResourcesBytes(int index)
       Required. Input only. Unordered list. resources contain the kubernetes
       manifests (YAMLs) for this variant.
       
      repeated string resources = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = UNORDERED_LIST, (.google.api.field_behavior) = INPUT_ONLY];
      Specified by:
      getResourcesBytes in interface VariantOrBuilder
      Parameters:
      index - The index of the value to return.
      Returns:
      The bytes of the resources at the given index.
    • setResources

      public Variant.Builder setResources(int index, String value)
       Required. Input only. Unordered list. resources contain the kubernetes
       manifests (YAMLs) for this variant.
       
      repeated string resources = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = UNORDERED_LIST, (.google.api.field_behavior) = INPUT_ONLY];
      Parameters:
      index - The index to set the value at.
      value - The resources to set.
      Returns:
      This builder for chaining.
    • addResources

      public Variant.Builder addResources(String value)
       Required. Input only. Unordered list. resources contain the kubernetes
       manifests (YAMLs) for this variant.
       
      repeated string resources = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = UNORDERED_LIST, (.google.api.field_behavior) = INPUT_ONLY];
      Parameters:
      value - The resources to add.
      Returns:
      This builder for chaining.
    • addAllResources

      public Variant.Builder addAllResources(Iterable<String> values)
       Required. Input only. Unordered list. resources contain the kubernetes
       manifests (YAMLs) for this variant.
       
      repeated string resources = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = UNORDERED_LIST, (.google.api.field_behavior) = INPUT_ONLY];
      Parameters:
      values - The resources to add.
      Returns:
      This builder for chaining.
    • clearResources

      public Variant.Builder clearResources()
       Required. Input only. Unordered list. resources contain the kubernetes
       manifests (YAMLs) for this variant.
       
      repeated string resources = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = UNORDERED_LIST, (.google.api.field_behavior) = INPUT_ONLY];
      Returns:
      This builder for chaining.
    • addResourcesBytes

      public Variant.Builder addResourcesBytes(com.google.protobuf.ByteString value)
       Required. Input only. Unordered list. resources contain the kubernetes
       manifests (YAMLs) for this variant.
       
      repeated string resources = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = UNORDERED_LIST, (.google.api.field_behavior) = INPUT_ONLY];
      Parameters:
      value - The bytes of the resources to add.
      Returns:
      This builder for chaining.
    • getName

      public String getName()
       Identifier. Name follows format of
       projects/{project}/locations/{location}/resourceBundles/{resource_bundle}/releases/{release}/variants/{variant}
       
      string name = 3 [(.google.api.field_behavior) = IDENTIFIER];
      Specified by:
      getName in interface VariantOrBuilder
      Returns:
      The name.
    • getNameBytes

      public com.google.protobuf.ByteString getNameBytes()
       Identifier. Name follows format of
       projects/{project}/locations/{location}/resourceBundles/{resource_bundle}/releases/{release}/variants/{variant}
       
      string name = 3 [(.google.api.field_behavior) = IDENTIFIER];
      Specified by:
      getNameBytes in interface VariantOrBuilder
      Returns:
      The bytes for name.
    • setName

      public Variant.Builder setName(String value)
       Identifier. Name follows format of
       projects/{project}/locations/{location}/resourceBundles/{resource_bundle}/releases/{release}/variants/{variant}
       
      string name = 3 [(.google.api.field_behavior) = IDENTIFIER];
      Parameters:
      value - The name to set.
      Returns:
      This builder for chaining.
    • clearName

      public Variant.Builder clearName()
       Identifier. Name follows format of
       projects/{project}/locations/{location}/resourceBundles/{resource_bundle}/releases/{release}/variants/{variant}
       
      string name = 3 [(.google.api.field_behavior) = IDENTIFIER];
      Returns:
      This builder for chaining.
    • setNameBytes

      public Variant.Builder setNameBytes(com.google.protobuf.ByteString value)
       Identifier. Name follows format of
       projects/{project}/locations/{location}/resourceBundles/{resource_bundle}/releases/{release}/variants/{variant}
       
      string name = 3 [(.google.api.field_behavior) = IDENTIFIER];
      Parameters:
      value - The bytes for name to set.
      Returns:
      This builder for chaining.
    • hasCreateTime

      public boolean hasCreateTime()
       Output only. [Output only] Create time stamp
       
      .google.protobuf.Timestamp create_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      hasCreateTime in interface VariantOrBuilder
      Returns:
      Whether the createTime field is set.
    • getCreateTime

      public com.google.protobuf.Timestamp getCreateTime()
       Output only. [Output only] Create time stamp
       
      .google.protobuf.Timestamp create_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getCreateTime in interface VariantOrBuilder
      Returns:
      The createTime.
    • setCreateTime

      public Variant.Builder setCreateTime(com.google.protobuf.Timestamp value)
       Output only. [Output only] Create time stamp
       
      .google.protobuf.Timestamp create_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
    • setCreateTime

      public Variant.Builder setCreateTime(com.google.protobuf.Timestamp.Builder builderForValue)
       Output only. [Output only] Create time stamp
       
      .google.protobuf.Timestamp create_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
    • mergeCreateTime

      public Variant.Builder mergeCreateTime(com.google.protobuf.Timestamp value)
       Output only. [Output only] Create time stamp
       
      .google.protobuf.Timestamp create_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
    • clearCreateTime

      public Variant.Builder clearCreateTime()
       Output only. [Output only] Create time stamp
       
      .google.protobuf.Timestamp create_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
    • getCreateTimeBuilder

      public com.google.protobuf.Timestamp.Builder getCreateTimeBuilder()
       Output only. [Output only] Create time stamp
       
      .google.protobuf.Timestamp create_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
    • getCreateTimeOrBuilder

      public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder()
       Output only. [Output only] Create time stamp
       
      .google.protobuf.Timestamp create_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getCreateTimeOrBuilder in interface VariantOrBuilder
    • hasUpdateTime

      public boolean hasUpdateTime()
       Output only. [Output only] Update time stamp
       
      .google.protobuf.Timestamp update_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      hasUpdateTime in interface VariantOrBuilder
      Returns:
      Whether the updateTime field is set.
    • getUpdateTime

      public com.google.protobuf.Timestamp getUpdateTime()
       Output only. [Output only] Update time stamp
       
      .google.protobuf.Timestamp update_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getUpdateTime in interface VariantOrBuilder
      Returns:
      The updateTime.
    • setUpdateTime

      public Variant.Builder setUpdateTime(com.google.protobuf.Timestamp value)
       Output only. [Output only] Update time stamp
       
      .google.protobuf.Timestamp update_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];
    • setUpdateTime

      public Variant.Builder setUpdateTime(com.google.protobuf.Timestamp.Builder builderForValue)
       Output only. [Output only] Update time stamp
       
      .google.protobuf.Timestamp update_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];
    • mergeUpdateTime

      public Variant.Builder mergeUpdateTime(com.google.protobuf.Timestamp value)
       Output only. [Output only] Update time stamp
       
      .google.protobuf.Timestamp update_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];
    • clearUpdateTime

      public Variant.Builder clearUpdateTime()
       Output only. [Output only] Update time stamp
       
      .google.protobuf.Timestamp update_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];
    • getUpdateTimeBuilder

      public com.google.protobuf.Timestamp.Builder getUpdateTimeBuilder()
       Output only. [Output only] Update time stamp
       
      .google.protobuf.Timestamp update_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];
    • getUpdateTimeOrBuilder

      public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder()
       Output only. [Output only] Update time stamp
       
      .google.protobuf.Timestamp update_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getUpdateTimeOrBuilder in interface VariantOrBuilder