Class UserWorkloadsSecret.Builder (1.39.0)

public static final class UserWorkloadsSecret.Builder extends GeneratedMessageV3.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

Static Methods

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
Type Description
Descriptor

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public UserWorkloadsSecret.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
UserWorkloadsSecret.Builder
Overrides

build()

public UserWorkloadsSecret build()
Returns
Type Description
UserWorkloadsSecret

buildPartial()

public UserWorkloadsSecret buildPartial()
Returns
Type Description
UserWorkloadsSecret

clear()

public UserWorkloadsSecret.Builder clear()
Returns
Type Description
UserWorkloadsSecret.Builder
Overrides

clearData()

public UserWorkloadsSecret.Builder clearData()
Returns
Type Description
UserWorkloadsSecret.Builder

clearField(Descriptors.FieldDescriptor field)

public UserWorkloadsSecret.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
Name Description
field FieldDescriptor
Returns
Type Description
UserWorkloadsSecret.Builder
Overrides

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
Type Description
UserWorkloadsSecret.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

public UserWorkloadsSecret.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
Name Description
oneof OneofDescriptor
Returns
Type Description
UserWorkloadsSecret.Builder
Overrides

clone()

public UserWorkloadsSecret.Builder clone()
Returns
Type Description
UserWorkloadsSecret.Builder
Overrides

containsData(String key)

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/

map<string, string> data = 2 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
key String
Returns
Type Description
boolean

getData() (deprecated)

public Map<String,String> getData()

Use #getDataMap() instead.

Returns
Type Description
Map<String,String>

getDataCount()

public int getDataCount()

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/

map<string, string> data = 2 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
int

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/

map<string, string> data = 2 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
Map<String,String>

getDataOrDefault(String key, String defaultValue)

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/

map<string, string> data = 2 [(.google.api.field_behavior) = OPTIONAL];

Parameters
Name Description
key String
defaultValue String
Returns
Type Description
String

getDataOrThrow(String key)

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/

map<string, string> data = 2 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
key String
Returns
Type Description
String

getDefaultInstanceForType()

public UserWorkloadsSecret getDefaultInstanceForType()
Returns
Type Description
UserWorkloadsSecret

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
Type Description
Descriptor
Overrides

getMutableData() (deprecated)

public Map<String,String> getMutableData()

Use alternate mutation accessors instead.

Returns
Type Description
Map<String,String>

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];

Returns
Type Description
String

The name.

getNameBytes()

public 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];

Returns
Type Description
ByteString

The bytes for name.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
Type Description
FieldAccessorTable
Overrides

internalGetMapFieldReflection(int number)

protected MapFieldReflectionAccessor internalGetMapFieldReflection(int number)
Parameter
Name Description
number int
Returns
Type Description
com.google.protobuf.MapFieldReflectionAccessor
Overrides
com.google.protobuf.GeneratedMessageV3.Builder.internalGetMapFieldReflection(int)

internalGetMutableMapFieldReflection(int number)

protected MapFieldReflectionAccessor internalGetMutableMapFieldReflection(int number)
Parameter
Name Description
number int
Returns
Type Description
com.google.protobuf.MapFieldReflectionAccessor
Overrides
com.google.protobuf.GeneratedMessageV3.Builder.internalGetMutableMapFieldReflection(int)

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(UserWorkloadsSecret other)

public UserWorkloadsSecret.Builder mergeFrom(UserWorkloadsSecret other)
Parameter
Name Description
other UserWorkloadsSecret
Returns
Type Description
UserWorkloadsSecret.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public UserWorkloadsSecret.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input CodedInputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
UserWorkloadsSecret.Builder
Overrides
Exceptions
Type Description
IOException

mergeFrom(Message other)

public UserWorkloadsSecret.Builder mergeFrom(Message other)
Parameter
Name Description
other Message
Returns
Type Description
UserWorkloadsSecret.Builder
Overrides

mergeUnknownFields(UnknownFieldSet unknownFields)

public final UserWorkloadsSecret.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
UserWorkloadsSecret.Builder
Overrides

putAllData(Map<String,String> values)

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/

map<string, string> data = 2 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
values Map<String,String>
Returns
Type Description
UserWorkloadsSecret.Builder

putData(String key, String value)

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/

map<string, string> data = 2 [(.google.api.field_behavior) = OPTIONAL];

Parameters
Name Description
key String
value String
Returns
Type Description
UserWorkloadsSecret.Builder

removeData(String key)

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/

map<string, string> data = 2 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
key String
Returns
Type Description
UserWorkloadsSecret.Builder

setField(Descriptors.FieldDescriptor field, Object value)

public UserWorkloadsSecret.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
UserWorkloadsSecret.Builder
Overrides

setName(String value)

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];

Parameter
Name Description
value String

The name to set.

Returns
Type Description
UserWorkloadsSecret.Builder

This builder for chaining.

setNameBytes(ByteString value)

public UserWorkloadsSecret.Builder setNameBytes(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];

Parameter
Name Description
value ByteString

The bytes for name to set.

Returns
Type Description
UserWorkloadsSecret.Builder

This builder for chaining.

setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)

public UserWorkloadsSecret.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
Name Description
field FieldDescriptor
index int
value Object
Returns
Type Description
UserWorkloadsSecret.Builder
Overrides

setUnknownFields(UnknownFieldSet unknownFields)

public final UserWorkloadsSecret.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
UserWorkloadsSecret.Builder
Overrides