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.v1.UserWorkloadsSecret
Inherited Members
com.google.protobuf.GeneratedMessageV3.Builder.getUnknownFieldSetBuilder()
com.google.protobuf.GeneratedMessageV3.Builder.internalGetMapFieldReflection(int)
com.google.protobuf.GeneratedMessageV3.Builder.internalGetMutableMapFieldReflection(int)
com.google.protobuf.GeneratedMessageV3.Builder.mergeUnknownLengthDelimitedField(int,com.google.protobuf.ByteString)
com.google.protobuf.GeneratedMessageV3.Builder.mergeUnknownVarintField(int,int)
com.google.protobuf.GeneratedMessageV3.Builder.parseUnknownField(com.google.protobuf.CodedInputStream,com.google.protobuf.ExtensionRegistryLite,int)
com.google.protobuf.GeneratedMessageV3.Builder.setUnknownFieldSetBuilder(com.google.protobuf.UnknownFieldSet.Builder)
Static Methods
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()
Methods
addRepeatedField(Descriptors.FieldDescriptor field, Object value)
public UserWorkloadsSecret.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Overrides
build()
public UserWorkloadsSecret build()
buildPartial()
public UserWorkloadsSecret buildPartial()
clear()
public UserWorkloadsSecret.Builder clear()
Overrides
clearData()
public UserWorkloadsSecret.Builder clearData()
clearField(Descriptors.FieldDescriptor field)
public UserWorkloadsSecret.Builder clearField(Descriptors.FieldDescriptor field)
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];
clearOneof(Descriptors.OneofDescriptor oneof)
public UserWorkloadsSecret.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Overrides
clone()
public UserWorkloadsSecret.Builder clone()
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
|
getData() (deprecated)
public Map<String,String> getData()
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];
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];
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()
getDescriptorForType()
public Descriptors.Descriptor getDescriptorForType()
Overrides
getMutableData() (deprecated)
public Map<String,String> getMutableData()
Use alternate mutation accessors instead.
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()
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()
Overrides
mergeFrom(UserWorkloadsSecret other)
public UserWorkloadsSecret.Builder mergeFrom(UserWorkloadsSecret other)
public UserWorkloadsSecret.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Overrides
mergeFrom(Message other)
public UserWorkloadsSecret.Builder mergeFrom(Message other)
Parameter |
Name |
Description |
other |
Message
|
Overrides
mergeUnknownFields(UnknownFieldSet unknownFields)
public final UserWorkloadsSecret.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
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];
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];
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
|
setField(Descriptors.FieldDescriptor field, Object value)
public UserWorkloadsSecret.Builder setField(Descriptors.FieldDescriptor field, Object value)
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.
|
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.
|
setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
public UserWorkloadsSecret.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Overrides
setUnknownFields(UnknownFieldSet unknownFields)
public final UserWorkloadsSecret.Builder setUnknownFields(UnknownFieldSet unknownFields)
Overrides