Class UserWorkloadsSecret.Builder

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

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

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

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

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

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

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

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

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

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

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

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

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

      public UserWorkloadsSecret.Builder setNameBytes(com.google.protobuf.ByteString value)
       Identifier. The resource name of the Secret, in the form:
       "projects/{projectId}/locations/{locationId}/environments/{environmentId}/userWorkloadsSecrets/{userWorkloadsSecretId}"
       
      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: UserWorkloadsSecretOrBuilder
       Optional. The "data" field of Kubernetes Secret, organized in key-value
       pairs, which can contain sensitive values such as a password, a token, or a
       key. The values for all keys have to be base64-encoded strings. For details
       see: https://kubernetes.io/docs/concepts/configuration/secret/
      
       Example:
      
       {
       "example": "ZXhhbXBsZV92YWx1ZQ==",
       "another-example": "YW5vdGhlcl9leGFtcGxlX3ZhbHVl"
       }
       
      map<string, string> data = 2 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getDataCount in interface UserWorkloadsSecretOrBuilder
    • containsData

      public boolean containsData(String key)
       Optional. The "data" field of Kubernetes Secret, organized in key-value
       pairs, which can contain sensitive values such as a password, a token, or a
       key. The values for all keys have to be base64-encoded strings. For details
       see: https://kubernetes.io/docs/concepts/configuration/secret/
      
       Example:
      
       {
       "example": "ZXhhbXBsZV92YWx1ZQ==",
       "another-example": "YW5vdGhlcl9leGFtcGxlX3ZhbHVl"
       }
       
      map<string, string> data = 2 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      containsData in interface UserWorkloadsSecretOrBuilder
    • getData

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

      public Map<String,String> getDataMap()
       Optional. The "data" field of Kubernetes Secret, organized in key-value
       pairs, which can contain sensitive values such as a password, a token, or a
       key. The values for all keys have to be base64-encoded strings. For details
       see: https://kubernetes.io/docs/concepts/configuration/secret/
      
       Example:
      
       {
       "example": "ZXhhbXBsZV92YWx1ZQ==",
       "another-example": "YW5vdGhlcl9leGFtcGxlX3ZhbHVl"
       }
       
      map<string, string> data = 2 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getDataMap in interface UserWorkloadsSecretOrBuilder
    • getDataOrDefault

      public String getDataOrDefault(String key, String defaultValue)
       Optional. The "data" field of Kubernetes Secret, organized in key-value
       pairs, which can contain sensitive values such as a password, a token, or a
       key. The values for all keys have to be base64-encoded strings. For details
       see: https://kubernetes.io/docs/concepts/configuration/secret/
      
       Example:
      
       {
       "example": "ZXhhbXBsZV92YWx1ZQ==",
       "another-example": "YW5vdGhlcl9leGFtcGxlX3ZhbHVl"
       }
       
      map<string, string> data = 2 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getDataOrDefault in interface UserWorkloadsSecretOrBuilder
    • getDataOrThrow

      public String getDataOrThrow(String key)
       Optional. The "data" field of Kubernetes Secret, organized in key-value
       pairs, which can contain sensitive values such as a password, a token, or a
       key. The values for all keys have to be base64-encoded strings. For details
       see: https://kubernetes.io/docs/concepts/configuration/secret/
      
       Example:
      
       {
       "example": "ZXhhbXBsZV92YWx1ZQ==",
       "another-example": "YW5vdGhlcl9leGFtcGxlX3ZhbHVl"
       }
       
      map<string, string> data = 2 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getDataOrThrow in interface UserWorkloadsSecretOrBuilder
    • clearData

      public UserWorkloadsSecret.Builder clearData()
    • removeData

      public UserWorkloadsSecret.Builder removeData(String key)
       Optional. The "data" field of Kubernetes Secret, organized in key-value
       pairs, which can contain sensitive values such as a password, a token, or a
       key. The values for all keys have to be base64-encoded strings. For details
       see: https://kubernetes.io/docs/concepts/configuration/secret/
      
       Example:
      
       {
       "example": "ZXhhbXBsZV92YWx1ZQ==",
       "another-example": "YW5vdGhlcl9leGFtcGxlX3ZhbHVl"
       }
       
      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 UserWorkloadsSecret.Builder putData(String key, String value)
       Optional. The "data" field of Kubernetes Secret, organized in key-value
       pairs, which can contain sensitive values such as a password, a token, or a
       key. The values for all keys have to be base64-encoded strings. For details
       see: https://kubernetes.io/docs/concepts/configuration/secret/
      
       Example:
      
       {
       "example": "ZXhhbXBsZV92YWx1ZQ==",
       "another-example": "YW5vdGhlcl9leGFtcGxlX3ZhbHVl"
       }
       
      map<string, string> data = 2 [(.google.api.field_behavior) = OPTIONAL];
    • putAllData

      public UserWorkloadsSecret.Builder putAllData(Map<String,String> values)
       Optional. The "data" field of Kubernetes Secret, organized in key-value
       pairs, which can contain sensitive values such as a password, a token, or a
       key. The values for all keys have to be base64-encoded strings. For details
       see: https://kubernetes.io/docs/concepts/configuration/secret/
      
       Example:
      
       {
       "example": "ZXhhbXBsZV92YWx1ZQ==",
       "another-example": "YW5vdGhlcl9leGFtcGxlX3ZhbHVl"
       }
       
      map<string, string> data = 2 [(.google.api.field_behavior) = OPTIONAL];