Class UserWorkloadsConfigMap.Builder

java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessage.Builder<UserWorkloadsConfigMap.Builder>
com.google.cloud.orchestration.airflow.service.v1beta1.UserWorkloadsConfigMap.Builder
All Implemented Interfaces:
UserWorkloadsConfigMapOrBuilder, com.google.protobuf.Message.Builder, com.google.protobuf.MessageLite.Builder, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, Cloneable
Enclosing class:
UserWorkloadsConfigMap

public static final class UserWorkloadsConfigMap.Builder extends com.google.protobuf.GeneratedMessage.Builder<UserWorkloadsConfigMap.Builder> implements UserWorkloadsConfigMapOrBuilder
 User workloads ConfigMap used by Airflow tasks that run with Kubernetes
 executor or KubernetesPodOperator.
 
Protobuf type google.cloud.orchestration.airflow.service.v1beta1.UserWorkloadsConfigMap
  • 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<UserWorkloadsConfigMap.Builder>
    • internalGetMutableMapFieldReflection

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

      protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()
      Specified by:
      internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessage.Builder<UserWorkloadsConfigMap.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<UserWorkloadsConfigMap.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<UserWorkloadsConfigMap.Builder>
    • getDefaultInstanceForType

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

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

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

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

    • isInitialized

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

      public UserWorkloadsConfigMap.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<UserWorkloadsConfigMap.Builder>
      Throws:
      IOException
    • getName

      public String getName()
       Identifier. The resource name of the ConfigMap, in the form:
       "projects/{projectId}/locations/{locationId}/environments/{environmentId}/userWorkloadsConfigMaps/{userWorkloadsConfigMapId}"
       
      string name = 1 [(.google.api.field_behavior) = IDENTIFIER];
      Specified by:
      getName in interface UserWorkloadsConfigMapOrBuilder
      Returns:
      The name.
    • getNameBytes

      public com.google.protobuf.ByteString getNameBytes()
       Identifier. The resource name of the ConfigMap, in the form:
       "projects/{projectId}/locations/{locationId}/environments/{environmentId}/userWorkloadsConfigMaps/{userWorkloadsConfigMapId}"
       
      string name = 1 [(.google.api.field_behavior) = IDENTIFIER];
      Specified by:
      getNameBytes in interface UserWorkloadsConfigMapOrBuilder
      Returns:
      The bytes for name.
    • setName

      public UserWorkloadsConfigMap.Builder setName(String value)
       Identifier. The resource name of the ConfigMap, in the form:
       "projects/{projectId}/locations/{locationId}/environments/{environmentId}/userWorkloadsConfigMaps/{userWorkloadsConfigMapId}"
       
      string name = 1 [(.google.api.field_behavior) = IDENTIFIER];
      Parameters:
      value - The name to set.
      Returns:
      This builder for chaining.
    • clearName

      public UserWorkloadsConfigMap.Builder clearName()
       Identifier. The resource name of the ConfigMap, in the form:
       "projects/{projectId}/locations/{locationId}/environments/{environmentId}/userWorkloadsConfigMaps/{userWorkloadsConfigMapId}"
       
      string name = 1 [(.google.api.field_behavior) = IDENTIFIER];
      Returns:
      This builder for chaining.
    • setNameBytes

      public UserWorkloadsConfigMap.Builder setNameBytes(com.google.protobuf.ByteString value)
       Identifier. The resource name of the ConfigMap, in the form:
       "projects/{projectId}/locations/{locationId}/environments/{environmentId}/userWorkloadsConfigMaps/{userWorkloadsConfigMapId}"
       
      string name = 1 [(.google.api.field_behavior) = IDENTIFIER];
      Parameters:
      value - The bytes for name to set.
      Returns:
      This builder for chaining.
    • getDataCount

      public int getDataCount()
      Description copied from interface: UserWorkloadsConfigMapOrBuilder
       Optional. The "data" field of Kubernetes ConfigMap, organized in key-value
       pairs. For details see:
       https://kubernetes.io/docs/concepts/configuration/configmap/
      
       Example:
      
       {
       "example_key": "example_value",
       "another_key": "another_value"
       }
       
      map<string, string> data = 2 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getDataCount in interface UserWorkloadsConfigMapOrBuilder
    • containsData

      public boolean containsData(String key)
       Optional. The "data" field of Kubernetes ConfigMap, organized in key-value
       pairs. For details see:
       https://kubernetes.io/docs/concepts/configuration/configmap/
      
       Example:
      
       {
       "example_key": "example_value",
       "another_key": "another_value"
       }
       
      map<string, string> data = 2 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      containsData in interface UserWorkloadsConfigMapOrBuilder
    • getData

      @Deprecated public Map<String,String> getData()
      Deprecated.
      Use getDataMap() instead.
      Specified by:
      getData in interface UserWorkloadsConfigMapOrBuilder
    • getDataMap

      public Map<String,String> getDataMap()
       Optional. The "data" field of Kubernetes ConfigMap, organized in key-value
       pairs. For details see:
       https://kubernetes.io/docs/concepts/configuration/configmap/
      
       Example:
      
       {
       "example_key": "example_value",
       "another_key": "another_value"
       }
       
      map<string, string> data = 2 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getDataMap in interface UserWorkloadsConfigMapOrBuilder
    • getDataOrDefault

      public String getDataOrDefault(String key, String defaultValue)
       Optional. The "data" field of Kubernetes ConfigMap, organized in key-value
       pairs. For details see:
       https://kubernetes.io/docs/concepts/configuration/configmap/
      
       Example:
      
       {
       "example_key": "example_value",
       "another_key": "another_value"
       }
       
      map<string, string> data = 2 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getDataOrDefault in interface UserWorkloadsConfigMapOrBuilder
    • getDataOrThrow

      public String getDataOrThrow(String key)
       Optional. The "data" field of Kubernetes ConfigMap, organized in key-value
       pairs. For details see:
       https://kubernetes.io/docs/concepts/configuration/configmap/
      
       Example:
      
       {
       "example_key": "example_value",
       "another_key": "another_value"
       }
       
      map<string, string> data = 2 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getDataOrThrow in interface UserWorkloadsConfigMapOrBuilder
    • clearData

      public UserWorkloadsConfigMap.Builder clearData()
    • removeData

      public UserWorkloadsConfigMap.Builder removeData(String key)
       Optional. The "data" field of Kubernetes ConfigMap, organized in key-value
       pairs. For details see:
       https://kubernetes.io/docs/concepts/configuration/configmap/
      
       Example:
      
       {
       "example_key": "example_value",
       "another_key": "another_value"
       }
       
      map<string, string> data = 2 [(.google.api.field_behavior) = OPTIONAL];
    • getMutableData

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

      public UserWorkloadsConfigMap.Builder putData(String key, String value)
       Optional. The "data" field of Kubernetes ConfigMap, organized in key-value
       pairs. For details see:
       https://kubernetes.io/docs/concepts/configuration/configmap/
      
       Example:
      
       {
       "example_key": "example_value",
       "another_key": "another_value"
       }
       
      map<string, string> data = 2 [(.google.api.field_behavior) = OPTIONAL];
    • putAllData

      public UserWorkloadsConfigMap.Builder putAllData(Map<String,String> values)
       Optional. The "data" field of Kubernetes ConfigMap, organized in key-value
       pairs. For details see:
       https://kubernetes.io/docs/concepts/configuration/configmap/
      
       Example:
      
       {
       "example_key": "example_value",
       "another_key": "another_value"
       }
       
      map<string, string> data = 2 [(.google.api.field_behavior) = OPTIONAL];