Class ExecutionConfig.Builder (4.4.0)

public static final class ExecutionConfig.Builder extends GeneratedMessageV3.Builder<ExecutionConfig.Builder> implements ExecutionConfigOrBuilder

Execution configuration for a workload.

Protobuf type google.cloud.dataproc.v1.ExecutionConfig

Static Methods

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
TypeDescription
Descriptor

Methods

addAllNetworkTags(Iterable<String> values)

public ExecutionConfig.Builder addAllNetworkTags(Iterable<String> values)

Optional. Tags used for network traffic control.

repeated string network_tags = 6 [(.google.api.field_behavior) = OPTIONAL];

Parameter
NameDescription
valuesIterable<String>

The networkTags to add.

Returns
TypeDescription
ExecutionConfig.Builder

This builder for chaining.

addNetworkTags(String value)

public ExecutionConfig.Builder addNetworkTags(String value)

Optional. Tags used for network traffic control.

repeated string network_tags = 6 [(.google.api.field_behavior) = OPTIONAL];

Parameter
NameDescription
valueString

The networkTags to add.

Returns
TypeDescription
ExecutionConfig.Builder

This builder for chaining.

addNetworkTagsBytes(ByteString value)

public ExecutionConfig.Builder addNetworkTagsBytes(ByteString value)

Optional. Tags used for network traffic control.

repeated string network_tags = 6 [(.google.api.field_behavior) = OPTIONAL];

Parameter
NameDescription
valueByteString

The bytes of the networkTags to add.

Returns
TypeDescription
ExecutionConfig.Builder

This builder for chaining.

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public ExecutionConfig.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
ExecutionConfig.Builder
Overrides

build()

public ExecutionConfig build()
Returns
TypeDescription
ExecutionConfig

buildPartial()

public ExecutionConfig buildPartial()
Returns
TypeDescription
ExecutionConfig

clear()

public ExecutionConfig.Builder clear()
Returns
TypeDescription
ExecutionConfig.Builder
Overrides

clearField(Descriptors.FieldDescriptor field)

public ExecutionConfig.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
NameDescription
fieldFieldDescriptor
Returns
TypeDescription
ExecutionConfig.Builder
Overrides

clearKmsKey()

public ExecutionConfig.Builder clearKmsKey()

Optional. The Cloud KMS key to use for encryption.

string kms_key = 7 [(.google.api.field_behavior) = OPTIONAL];

Returns
TypeDescription
ExecutionConfig.Builder

This builder for chaining.

clearNetwork()

public ExecutionConfig.Builder clearNetwork()
Returns
TypeDescription
ExecutionConfig.Builder

clearNetworkTags()

public ExecutionConfig.Builder clearNetworkTags()

Optional. Tags used for network traffic control.

repeated string network_tags = 6 [(.google.api.field_behavior) = OPTIONAL];

Returns
TypeDescription
ExecutionConfig.Builder

This builder for chaining.

clearNetworkUri()

public ExecutionConfig.Builder clearNetworkUri()

Optional. Network URI to connect workload to.

string network_uri = 4 [(.google.api.field_behavior) = OPTIONAL];

Returns
TypeDescription
ExecutionConfig.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

public ExecutionConfig.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
NameDescription
oneofOneofDescriptor
Returns
TypeDescription
ExecutionConfig.Builder
Overrides

clearServiceAccount()

public ExecutionConfig.Builder clearServiceAccount()

Optional. Service account that used to execute workload.

string service_account = 2 [(.google.api.field_behavior) = OPTIONAL];

Returns
TypeDescription
ExecutionConfig.Builder

This builder for chaining.

clearSubnetworkUri()

public ExecutionConfig.Builder clearSubnetworkUri()

Optional. Subnetwork URI to connect workload to.

string subnetwork_uri = 5 [(.google.api.field_behavior) = OPTIONAL];

Returns
TypeDescription
ExecutionConfig.Builder

This builder for chaining.

clone()

public ExecutionConfig.Builder clone()
Returns
TypeDescription
ExecutionConfig.Builder
Overrides

getDefaultInstanceForType()

public ExecutionConfig getDefaultInstanceForType()
Returns
TypeDescription
ExecutionConfig

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
Descriptor
Overrides

getKmsKey()

public String getKmsKey()

Optional. The Cloud KMS key to use for encryption.

string kms_key = 7 [(.google.api.field_behavior) = OPTIONAL];

Returns
TypeDescription
String

The kmsKey.

getKmsKeyBytes()

public ByteString getKmsKeyBytes()

Optional. The Cloud KMS key to use for encryption.

string kms_key = 7 [(.google.api.field_behavior) = OPTIONAL];

Returns
TypeDescription
ByteString

The bytes for kmsKey.

getNetworkCase()

public ExecutionConfig.NetworkCase getNetworkCase()
Returns
TypeDescription
ExecutionConfig.NetworkCase

getNetworkTags(int index)

public String getNetworkTags(int index)

Optional. Tags used for network traffic control.

repeated string network_tags = 6 [(.google.api.field_behavior) = OPTIONAL];

Parameter
NameDescription
indexint

The index of the element to return.

Returns
TypeDescription
String

The networkTags at the given index.

getNetworkTagsBytes(int index)

public ByteString getNetworkTagsBytes(int index)

Optional. Tags used for network traffic control.

repeated string network_tags = 6 [(.google.api.field_behavior) = OPTIONAL];

Parameter
NameDescription
indexint

The index of the value to return.

Returns
TypeDescription
ByteString

The bytes of the networkTags at the given index.

getNetworkTagsCount()

public int getNetworkTagsCount()

Optional. Tags used for network traffic control.

repeated string network_tags = 6 [(.google.api.field_behavior) = OPTIONAL];

Returns
TypeDescription
int

The count of networkTags.

getNetworkTagsList()

public ProtocolStringList getNetworkTagsList()

Optional. Tags used for network traffic control.

repeated string network_tags = 6 [(.google.api.field_behavior) = OPTIONAL];

Returns
TypeDescription
ProtocolStringList

A list containing the networkTags.

getNetworkUri()

public String getNetworkUri()

Optional. Network URI to connect workload to.

string network_uri = 4 [(.google.api.field_behavior) = OPTIONAL];

Returns
TypeDescription
String

The networkUri.

getNetworkUriBytes()

public ByteString getNetworkUriBytes()

Optional. Network URI to connect workload to.

string network_uri = 4 [(.google.api.field_behavior) = OPTIONAL];

Returns
TypeDescription
ByteString

The bytes for networkUri.

getServiceAccount()

public String getServiceAccount()

Optional. Service account that used to execute workload.

string service_account = 2 [(.google.api.field_behavior) = OPTIONAL];

Returns
TypeDescription
String

The serviceAccount.

getServiceAccountBytes()

public ByteString getServiceAccountBytes()

Optional. Service account that used to execute workload.

string service_account = 2 [(.google.api.field_behavior) = OPTIONAL];

Returns
TypeDescription
ByteString

The bytes for serviceAccount.

getSubnetworkUri()

public String getSubnetworkUri()

Optional. Subnetwork URI to connect workload to.

string subnetwork_uri = 5 [(.google.api.field_behavior) = OPTIONAL];

Returns
TypeDescription
String

The subnetworkUri.

getSubnetworkUriBytes()

public ByteString getSubnetworkUriBytes()

Optional. Subnetwork URI to connect workload to.

string subnetwork_uri = 5 [(.google.api.field_behavior) = OPTIONAL];

Returns
TypeDescription
ByteString

The bytes for subnetworkUri.

hasNetworkUri()

public boolean hasNetworkUri()

Optional. Network URI to connect workload to.

string network_uri = 4 [(.google.api.field_behavior) = OPTIONAL];

Returns
TypeDescription
boolean

Whether the networkUri field is set.

hasSubnetworkUri()

public boolean hasSubnetworkUri()

Optional. Subnetwork URI to connect workload to.

string subnetwork_uri = 5 [(.google.api.field_behavior) = OPTIONAL];

Returns
TypeDescription
boolean

Whether the subnetworkUri field is set.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

mergeFrom(ExecutionConfig other)

public ExecutionConfig.Builder mergeFrom(ExecutionConfig other)
Parameter
NameDescription
otherExecutionConfig
Returns
TypeDescription
ExecutionConfig.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public ExecutionConfig.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputCodedInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
ExecutionConfig.Builder
Overrides Exceptions
TypeDescription
IOException

mergeFrom(Message other)

public ExecutionConfig.Builder mergeFrom(Message other)
Parameter
NameDescription
otherMessage
Returns
TypeDescription
ExecutionConfig.Builder
Overrides

mergeUnknownFields(UnknownFieldSet unknownFields)

public final ExecutionConfig.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
ExecutionConfig.Builder
Overrides

setField(Descriptors.FieldDescriptor field, Object value)

public ExecutionConfig.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
ExecutionConfig.Builder
Overrides

setKmsKey(String value)

public ExecutionConfig.Builder setKmsKey(String value)

Optional. The Cloud KMS key to use for encryption.

string kms_key = 7 [(.google.api.field_behavior) = OPTIONAL];

Parameter
NameDescription
valueString

The kmsKey to set.

Returns
TypeDescription
ExecutionConfig.Builder

This builder for chaining.

setKmsKeyBytes(ByteString value)

public ExecutionConfig.Builder setKmsKeyBytes(ByteString value)

Optional. The Cloud KMS key to use for encryption.

string kms_key = 7 [(.google.api.field_behavior) = OPTIONAL];

Parameter
NameDescription
valueByteString

The bytes for kmsKey to set.

Returns
TypeDescription
ExecutionConfig.Builder

This builder for chaining.

setNetworkTags(int index, String value)

public ExecutionConfig.Builder setNetworkTags(int index, String value)

Optional. Tags used for network traffic control.

repeated string network_tags = 6 [(.google.api.field_behavior) = OPTIONAL];

Parameters
NameDescription
indexint

The index to set the value at.

valueString

The networkTags to set.

Returns
TypeDescription
ExecutionConfig.Builder

This builder for chaining.

setNetworkUri(String value)

public ExecutionConfig.Builder setNetworkUri(String value)

Optional. Network URI to connect workload to.

string network_uri = 4 [(.google.api.field_behavior) = OPTIONAL];

Parameter
NameDescription
valueString

The networkUri to set.

Returns
TypeDescription
ExecutionConfig.Builder

This builder for chaining.

setNetworkUriBytes(ByteString value)

public ExecutionConfig.Builder setNetworkUriBytes(ByteString value)

Optional. Network URI to connect workload to.

string network_uri = 4 [(.google.api.field_behavior) = OPTIONAL];

Parameter
NameDescription
valueByteString

The bytes for networkUri to set.

Returns
TypeDescription
ExecutionConfig.Builder

This builder for chaining.

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

public ExecutionConfig.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
NameDescription
fieldFieldDescriptor
indexint
valueObject
Returns
TypeDescription
ExecutionConfig.Builder
Overrides

setServiceAccount(String value)

public ExecutionConfig.Builder setServiceAccount(String value)

Optional. Service account that used to execute workload.

string service_account = 2 [(.google.api.field_behavior) = OPTIONAL];

Parameter
NameDescription
valueString

The serviceAccount to set.

Returns
TypeDescription
ExecutionConfig.Builder

This builder for chaining.

setServiceAccountBytes(ByteString value)

public ExecutionConfig.Builder setServiceAccountBytes(ByteString value)

Optional. Service account that used to execute workload.

string service_account = 2 [(.google.api.field_behavior) = OPTIONAL];

Parameter
NameDescription
valueByteString

The bytes for serviceAccount to set.

Returns
TypeDescription
ExecutionConfig.Builder

This builder for chaining.

setSubnetworkUri(String value)

public ExecutionConfig.Builder setSubnetworkUri(String value)

Optional. Subnetwork URI to connect workload to.

string subnetwork_uri = 5 [(.google.api.field_behavior) = OPTIONAL];

Parameter
NameDescription
valueString

The subnetworkUri to set.

Returns
TypeDescription
ExecutionConfig.Builder

This builder for chaining.

setSubnetworkUriBytes(ByteString value)

public ExecutionConfig.Builder setSubnetworkUriBytes(ByteString value)

Optional. Subnetwork URI to connect workload to.

string subnetwork_uri = 5 [(.google.api.field_behavior) = OPTIONAL];

Parameter
NameDescription
valueByteString

The bytes for subnetworkUri to set.

Returns
TypeDescription
ExecutionConfig.Builder

This builder for chaining.

setUnknownFields(UnknownFieldSet unknownFields)

public final ExecutionConfig.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
ExecutionConfig.Builder
Overrides