Package com.google.cloud.dataproc.v1
Class ExecutionConfig.Builder
- java.lang.Object
-
- com.google.protobuf.AbstractMessageLite.Builder
-
- com.google.protobuf.AbstractMessage.Builder<BuilderT>
-
- com.google.protobuf.GeneratedMessageV3.Builder<ExecutionConfig.Builder>
-
- com.google.cloud.dataproc.v1.ExecutionConfig.Builder
-
- All Implemented Interfaces:
ExecutionConfigOrBuilder
,com.google.protobuf.Message.Builder
,com.google.protobuf.MessageLite.Builder
,com.google.protobuf.MessageLiteOrBuilder
,com.google.protobuf.MessageOrBuilder
,Cloneable
- Enclosing class:
- ExecutionConfig
public static final class ExecutionConfig.Builder extends com.google.protobuf.GeneratedMessageV3.Builder<ExecutionConfig.Builder> implements ExecutionConfigOrBuilder
Execution configuration for a workload.
Protobuf typegoogle.cloud.dataproc.v1.ExecutionConfig
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description ExecutionConfig.Builder
addAllNetworkTags(Iterable<String> values)
Optional.ExecutionConfig.Builder
addNetworkTags(String value)
Optional.ExecutionConfig.Builder
addNetworkTagsBytes(com.google.protobuf.ByteString value)
Optional.ExecutionConfig.Builder
addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
ExecutionConfig
build()
ExecutionConfig
buildPartial()
ExecutionConfig.Builder
clear()
ExecutionConfig.Builder
clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
ExecutionConfig.Builder
clearKmsKey()
Optional.ExecutionConfig.Builder
clearNetwork()
ExecutionConfig.Builder
clearNetworkTags()
Optional.ExecutionConfig.Builder
clearNetworkUri()
Optional.ExecutionConfig.Builder
clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
ExecutionConfig.Builder
clearServiceAccount()
Optional.ExecutionConfig.Builder
clearStagingBucket()
Optional.ExecutionConfig.Builder
clearSubnetworkUri()
Optional.ExecutionConfig.Builder
clearTtl()
Optional.ExecutionConfig.Builder
clone()
ExecutionConfig
getDefaultInstanceForType()
static com.google.protobuf.Descriptors.Descriptor
getDescriptor()
com.google.protobuf.Descriptors.Descriptor
getDescriptorForType()
String
getKmsKey()
Optional.com.google.protobuf.ByteString
getKmsKeyBytes()
Optional.ExecutionConfig.NetworkCase
getNetworkCase()
String
getNetworkTags(int index)
Optional.com.google.protobuf.ByteString
getNetworkTagsBytes(int index)
Optional.int
getNetworkTagsCount()
Optional.com.google.protobuf.ProtocolStringList
getNetworkTagsList()
Optional.String
getNetworkUri()
Optional.com.google.protobuf.ByteString
getNetworkUriBytes()
Optional.String
getServiceAccount()
Optional.com.google.protobuf.ByteString
getServiceAccountBytes()
Optional.String
getStagingBucket()
Optional.com.google.protobuf.ByteString
getStagingBucketBytes()
Optional.String
getSubnetworkUri()
Optional.com.google.protobuf.ByteString
getSubnetworkUriBytes()
Optional.com.google.protobuf.Duration
getTtl()
Optional.com.google.protobuf.Duration.Builder
getTtlBuilder()
Optional.com.google.protobuf.DurationOrBuilder
getTtlOrBuilder()
Optional.boolean
hasNetworkUri()
Optional.boolean
hasSubnetworkUri()
Optional.boolean
hasTtl()
Optional.protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable()
boolean
isInitialized()
ExecutionConfig.Builder
mergeFrom(ExecutionConfig other)
ExecutionConfig.Builder
mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
ExecutionConfig.Builder
mergeFrom(com.google.protobuf.Message other)
ExecutionConfig.Builder
mergeTtl(com.google.protobuf.Duration value)
Optional.ExecutionConfig.Builder
mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
ExecutionConfig.Builder
setField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
ExecutionConfig.Builder
setKmsKey(String value)
Optional.ExecutionConfig.Builder
setKmsKeyBytes(com.google.protobuf.ByteString value)
Optional.ExecutionConfig.Builder
setNetworkTags(int index, String value)
Optional.ExecutionConfig.Builder
setNetworkUri(String value)
Optional.ExecutionConfig.Builder
setNetworkUriBytes(com.google.protobuf.ByteString value)
Optional.ExecutionConfig.Builder
setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)
ExecutionConfig.Builder
setServiceAccount(String value)
Optional.ExecutionConfig.Builder
setServiceAccountBytes(com.google.protobuf.ByteString value)
Optional.ExecutionConfig.Builder
setStagingBucket(String value)
Optional.ExecutionConfig.Builder
setStagingBucketBytes(com.google.protobuf.ByteString value)
Optional.ExecutionConfig.Builder
setSubnetworkUri(String value)
Optional.ExecutionConfig.Builder
setSubnetworkUriBytes(com.google.protobuf.ByteString value)
Optional.ExecutionConfig.Builder
setTtl(com.google.protobuf.Duration value)
Optional.ExecutionConfig.Builder
setTtl(com.google.protobuf.Duration.Builder builderForValue)
Optional.ExecutionConfig.Builder
setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
-
Methods inherited from class com.google.protobuf.GeneratedMessageV3.Builder
getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, internalGetMapField, internalGetMutableMapField, isClean, markClean, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, setUnknownFieldSetBuilder, setUnknownFieldsProto3
-
Methods inherited from class com.google.protobuf.AbstractMessage.Builder
findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toString
-
Methods inherited from class com.google.protobuf.AbstractMessageLite.Builder
addAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, newUninitializedMessageException
-
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
-
-
-
Method Detail
-
getDescriptor
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
-
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
- Specified by:
internalGetFieldAccessorTable
in classcom.google.protobuf.GeneratedMessageV3.Builder<ExecutionConfig.Builder>
-
clear
public ExecutionConfig.Builder clear()
- Specified by:
clear
in interfacecom.google.protobuf.Message.Builder
- Specified by:
clear
in interfacecom.google.protobuf.MessageLite.Builder
- Overrides:
clear
in classcom.google.protobuf.GeneratedMessageV3.Builder<ExecutionConfig.Builder>
-
getDescriptorForType
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
- Specified by:
getDescriptorForType
in interfacecom.google.protobuf.Message.Builder
- Specified by:
getDescriptorForType
in interfacecom.google.protobuf.MessageOrBuilder
- Overrides:
getDescriptorForType
in classcom.google.protobuf.GeneratedMessageV3.Builder<ExecutionConfig.Builder>
-
getDefaultInstanceForType
public ExecutionConfig getDefaultInstanceForType()
- Specified by:
getDefaultInstanceForType
in interfacecom.google.protobuf.MessageLiteOrBuilder
- Specified by:
getDefaultInstanceForType
in interfacecom.google.protobuf.MessageOrBuilder
-
build
public ExecutionConfig build()
- Specified by:
build
in interfacecom.google.protobuf.Message.Builder
- Specified by:
build
in interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
public ExecutionConfig buildPartial()
- Specified by:
buildPartial
in interfacecom.google.protobuf.Message.Builder
- Specified by:
buildPartial
in interfacecom.google.protobuf.MessageLite.Builder
-
clone
public ExecutionConfig.Builder clone()
- Specified by:
clone
in interfacecom.google.protobuf.Message.Builder
- Specified by:
clone
in interfacecom.google.protobuf.MessageLite.Builder
- Overrides:
clone
in classcom.google.protobuf.GeneratedMessageV3.Builder<ExecutionConfig.Builder>
-
setField
public ExecutionConfig.Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
- Specified by:
setField
in interfacecom.google.protobuf.Message.Builder
- Overrides:
setField
in classcom.google.protobuf.GeneratedMessageV3.Builder<ExecutionConfig.Builder>
-
clearField
public ExecutionConfig.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
- Specified by:
clearField
in interfacecom.google.protobuf.Message.Builder
- Overrides:
clearField
in classcom.google.protobuf.GeneratedMessageV3.Builder<ExecutionConfig.Builder>
-
clearOneof
public ExecutionConfig.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
- Specified by:
clearOneof
in interfacecom.google.protobuf.Message.Builder
- Overrides:
clearOneof
in classcom.google.protobuf.GeneratedMessageV3.Builder<ExecutionConfig.Builder>
-
setRepeatedField
public ExecutionConfig.Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)
- Specified by:
setRepeatedField
in interfacecom.google.protobuf.Message.Builder
- Overrides:
setRepeatedField
in classcom.google.protobuf.GeneratedMessageV3.Builder<ExecutionConfig.Builder>
-
addRepeatedField
public ExecutionConfig.Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
- Specified by:
addRepeatedField
in interfacecom.google.protobuf.Message.Builder
- Overrides:
addRepeatedField
in classcom.google.protobuf.GeneratedMessageV3.Builder<ExecutionConfig.Builder>
-
mergeFrom
public ExecutionConfig.Builder mergeFrom(com.google.protobuf.Message other)
- Specified by:
mergeFrom
in interfacecom.google.protobuf.Message.Builder
- Overrides:
mergeFrom
in classcom.google.protobuf.AbstractMessage.Builder<ExecutionConfig.Builder>
-
mergeFrom
public ExecutionConfig.Builder mergeFrom(ExecutionConfig other)
-
isInitialized
public final boolean isInitialized()
- Specified by:
isInitialized
in interfacecom.google.protobuf.MessageLiteOrBuilder
- Overrides:
isInitialized
in classcom.google.protobuf.GeneratedMessageV3.Builder<ExecutionConfig.Builder>
-
mergeFrom
public ExecutionConfig.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
- Specified by:
mergeFrom
in interfacecom.google.protobuf.Message.Builder
- Specified by:
mergeFrom
in interfacecom.google.protobuf.MessageLite.Builder
- Overrides:
mergeFrom
in classcom.google.protobuf.AbstractMessage.Builder<ExecutionConfig.Builder>
- Throws:
IOException
-
getNetworkCase
public ExecutionConfig.NetworkCase getNetworkCase()
- Specified by:
getNetworkCase
in interfaceExecutionConfigOrBuilder
-
clearNetwork
public ExecutionConfig.Builder clearNetwork()
-
getServiceAccount
public String getServiceAccount()
Optional. Service account that used to execute workload.
string service_account = 2 [(.google.api.field_behavior) = OPTIONAL];
- Specified by:
getServiceAccount
in interfaceExecutionConfigOrBuilder
- Returns:
- The serviceAccount.
-
getServiceAccountBytes
public com.google.protobuf.ByteString getServiceAccountBytes()
Optional. Service account that used to execute workload.
string service_account = 2 [(.google.api.field_behavior) = OPTIONAL];
- Specified by:
getServiceAccountBytes
in interfaceExecutionConfigOrBuilder
- Returns:
- The bytes for serviceAccount.
-
setServiceAccount
public ExecutionConfig.Builder setServiceAccount(String value)
Optional. Service account that used to execute workload.
string service_account = 2 [(.google.api.field_behavior) = OPTIONAL];
- Parameters:
value
- The serviceAccount to set.- Returns:
- This builder for chaining.
-
clearServiceAccount
public ExecutionConfig.Builder clearServiceAccount()
Optional. Service account that used to execute workload.
string service_account = 2 [(.google.api.field_behavior) = OPTIONAL];
- Returns:
- This builder for chaining.
-
setServiceAccountBytes
public ExecutionConfig.Builder setServiceAccountBytes(com.google.protobuf.ByteString value)
Optional. Service account that used to execute workload.
string service_account = 2 [(.google.api.field_behavior) = OPTIONAL];
- Parameters:
value
- The bytes for serviceAccount to set.- Returns:
- This builder for chaining.
-
hasNetworkUri
public boolean hasNetworkUri()
Optional. Network URI to connect workload to.
string network_uri = 4 [(.google.api.field_behavior) = OPTIONAL];
- Specified by:
hasNetworkUri
in interfaceExecutionConfigOrBuilder
- Returns:
- Whether the networkUri field is set.
-
getNetworkUri
public String getNetworkUri()
Optional. Network URI to connect workload to.
string network_uri = 4 [(.google.api.field_behavior) = OPTIONAL];
- Specified by:
getNetworkUri
in interfaceExecutionConfigOrBuilder
- Returns:
- The networkUri.
-
getNetworkUriBytes
public com.google.protobuf.ByteString getNetworkUriBytes()
Optional. Network URI to connect workload to.
string network_uri = 4 [(.google.api.field_behavior) = OPTIONAL];
- Specified by:
getNetworkUriBytes
in interfaceExecutionConfigOrBuilder
- Returns:
- The bytes for networkUri.
-
setNetworkUri
public ExecutionConfig.Builder setNetworkUri(String value)
Optional. Network URI to connect workload to.
string network_uri = 4 [(.google.api.field_behavior) = OPTIONAL];
- Parameters:
value
- The networkUri to set.- Returns:
- 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:
- This builder for chaining.
-
setNetworkUriBytes
public ExecutionConfig.Builder setNetworkUriBytes(com.google.protobuf.ByteString value)
Optional. Network URI to connect workload to.
string network_uri = 4 [(.google.api.field_behavior) = OPTIONAL];
- Parameters:
value
- The bytes for networkUri to set.- Returns:
- This builder for chaining.
-
hasSubnetworkUri
public boolean hasSubnetworkUri()
Optional. Subnetwork URI to connect workload to.
string subnetwork_uri = 5 [(.google.api.field_behavior) = OPTIONAL];
- Specified by:
hasSubnetworkUri
in interfaceExecutionConfigOrBuilder
- Returns:
- Whether the subnetworkUri field is set.
-
getSubnetworkUri
public String getSubnetworkUri()
Optional. Subnetwork URI to connect workload to.
string subnetwork_uri = 5 [(.google.api.field_behavior) = OPTIONAL];
- Specified by:
getSubnetworkUri
in interfaceExecutionConfigOrBuilder
- Returns:
- The subnetworkUri.
-
getSubnetworkUriBytes
public com.google.protobuf.ByteString getSubnetworkUriBytes()
Optional. Subnetwork URI to connect workload to.
string subnetwork_uri = 5 [(.google.api.field_behavior) = OPTIONAL];
- Specified by:
getSubnetworkUriBytes
in interfaceExecutionConfigOrBuilder
- Returns:
- The bytes for subnetworkUri.
-
setSubnetworkUri
public ExecutionConfig.Builder setSubnetworkUri(String value)
Optional. Subnetwork URI to connect workload to.
string subnetwork_uri = 5 [(.google.api.field_behavior) = OPTIONAL];
- Parameters:
value
- The subnetworkUri to set.- Returns:
- 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:
- This builder for chaining.
-
setSubnetworkUriBytes
public ExecutionConfig.Builder setSubnetworkUriBytes(com.google.protobuf.ByteString value)
Optional. Subnetwork URI to connect workload to.
string subnetwork_uri = 5 [(.google.api.field_behavior) = OPTIONAL];
- Parameters:
value
- The bytes for subnetworkUri to set.- Returns:
- This builder for chaining.
-
getNetworkTagsList
public com.google.protobuf.ProtocolStringList getNetworkTagsList()
Optional. Tags used for network traffic control.
repeated string network_tags = 6 [(.google.api.field_behavior) = OPTIONAL];
- Specified by:
getNetworkTagsList
in interfaceExecutionConfigOrBuilder
- Returns:
- A list containing the networkTags.
-
getNetworkTagsCount
public int getNetworkTagsCount()
Optional. Tags used for network traffic control.
repeated string network_tags = 6 [(.google.api.field_behavior) = OPTIONAL];
- Specified by:
getNetworkTagsCount
in interfaceExecutionConfigOrBuilder
- Returns:
- The count of networkTags.
-
getNetworkTags
public String getNetworkTags(int index)
Optional. Tags used for network traffic control.
repeated string network_tags = 6 [(.google.api.field_behavior) = OPTIONAL];
- Specified by:
getNetworkTags
in interfaceExecutionConfigOrBuilder
- Parameters:
index
- The index of the element to return.- Returns:
- The networkTags at the given index.
-
getNetworkTagsBytes
public com.google.protobuf.ByteString getNetworkTagsBytes(int index)
Optional. Tags used for network traffic control.
repeated string network_tags = 6 [(.google.api.field_behavior) = OPTIONAL];
- Specified by:
getNetworkTagsBytes
in interfaceExecutionConfigOrBuilder
- Parameters:
index
- The index of the value to return.- Returns:
- The bytes of the networkTags at the given index.
-
setNetworkTags
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:
index
- The index to set the value at.value
- The networkTags to set.- Returns:
- This builder for chaining.
-
addNetworkTags
public ExecutionConfig.Builder addNetworkTags(String value)
Optional. Tags used for network traffic control.
repeated string network_tags = 6 [(.google.api.field_behavior) = OPTIONAL];
- Parameters:
value
- The networkTags to add.- Returns:
- This builder for chaining.
-
addAllNetworkTags
public ExecutionConfig.Builder addAllNetworkTags(Iterable<String> values)
Optional. Tags used for network traffic control.
repeated string network_tags = 6 [(.google.api.field_behavior) = OPTIONAL];
- Parameters:
values
- The networkTags to add.- Returns:
- This builder for chaining.
-
clearNetworkTags
public ExecutionConfig.Builder clearNetworkTags()
Optional. Tags used for network traffic control.
repeated string network_tags = 6 [(.google.api.field_behavior) = OPTIONAL];
- Returns:
- This builder for chaining.
-
addNetworkTagsBytes
public ExecutionConfig.Builder addNetworkTagsBytes(com.google.protobuf.ByteString value)
Optional. Tags used for network traffic control.
repeated string network_tags = 6 [(.google.api.field_behavior) = OPTIONAL];
- Parameters:
value
- The bytes of the networkTags to add.- Returns:
- This builder for chaining.
-
getKmsKey
public String getKmsKey()
Optional. The Cloud KMS key to use for encryption.
string kms_key = 7 [(.google.api.field_behavior) = OPTIONAL];
- Specified by:
getKmsKey
in interfaceExecutionConfigOrBuilder
- Returns:
- The kmsKey.
-
getKmsKeyBytes
public com.google.protobuf.ByteString getKmsKeyBytes()
Optional. The Cloud KMS key to use for encryption.
string kms_key = 7 [(.google.api.field_behavior) = OPTIONAL];
- Specified by:
getKmsKeyBytes
in interfaceExecutionConfigOrBuilder
- Returns:
- The bytes for kmsKey.
-
setKmsKey
public ExecutionConfig.Builder setKmsKey(String value)
Optional. The Cloud KMS key to use for encryption.
string kms_key = 7 [(.google.api.field_behavior) = OPTIONAL];
- Parameters:
value
- The kmsKey to set.- Returns:
- This builder for chaining.
-
clearKmsKey
public ExecutionConfig.Builder clearKmsKey()
Optional. The Cloud KMS key to use for encryption.
string kms_key = 7 [(.google.api.field_behavior) = OPTIONAL];
- Returns:
- This builder for chaining.
-
setKmsKeyBytes
public ExecutionConfig.Builder setKmsKeyBytes(com.google.protobuf.ByteString value)
Optional. The Cloud KMS key to use for encryption.
string kms_key = 7 [(.google.api.field_behavior) = OPTIONAL];
- Parameters:
value
- The bytes for kmsKey to set.- Returns:
- This builder for chaining.
-
hasTtl
public boolean hasTtl()
Optional. The duration after which the workload will be terminated. When the workload passes this ttl, it will be unconditionally killed without waiting for ongoing work to finish. Minimum value is 10 minutes; maximum value is 14 days (see JSON representation of [Duration](https://developers.google.com/protocol-buffers/docs/proto3#json)). If both ttl and idle_ttl are specified, the conditions are treated as and OR: the workload will be terminated when it has been idle for idle_ttl or when the ttl has passed, whichever comes first. If ttl is not specified for a session, it defaults to 24h.
.google.protobuf.Duration ttl = 9 [(.google.api.field_behavior) = OPTIONAL];
- Specified by:
hasTtl
in interfaceExecutionConfigOrBuilder
- Returns:
- Whether the ttl field is set.
-
getTtl
public com.google.protobuf.Duration getTtl()
Optional. The duration after which the workload will be terminated. When the workload passes this ttl, it will be unconditionally killed without waiting for ongoing work to finish. Minimum value is 10 minutes; maximum value is 14 days (see JSON representation of [Duration](https://developers.google.com/protocol-buffers/docs/proto3#json)). If both ttl and idle_ttl are specified, the conditions are treated as and OR: the workload will be terminated when it has been idle for idle_ttl or when the ttl has passed, whichever comes first. If ttl is not specified for a session, it defaults to 24h.
.google.protobuf.Duration ttl = 9 [(.google.api.field_behavior) = OPTIONAL];
- Specified by:
getTtl
in interfaceExecutionConfigOrBuilder
- Returns:
- The ttl.
-
setTtl
public ExecutionConfig.Builder setTtl(com.google.protobuf.Duration value)
Optional. The duration after which the workload will be terminated. When the workload passes this ttl, it will be unconditionally killed without waiting for ongoing work to finish. Minimum value is 10 minutes; maximum value is 14 days (see JSON representation of [Duration](https://developers.google.com/protocol-buffers/docs/proto3#json)). If both ttl and idle_ttl are specified, the conditions are treated as and OR: the workload will be terminated when it has been idle for idle_ttl or when the ttl has passed, whichever comes first. If ttl is not specified for a session, it defaults to 24h.
.google.protobuf.Duration ttl = 9 [(.google.api.field_behavior) = OPTIONAL];
-
setTtl
public ExecutionConfig.Builder setTtl(com.google.protobuf.Duration.Builder builderForValue)
Optional. The duration after which the workload will be terminated. When the workload passes this ttl, it will be unconditionally killed without waiting for ongoing work to finish. Minimum value is 10 minutes; maximum value is 14 days (see JSON representation of [Duration](https://developers.google.com/protocol-buffers/docs/proto3#json)). If both ttl and idle_ttl are specified, the conditions are treated as and OR: the workload will be terminated when it has been idle for idle_ttl or when the ttl has passed, whichever comes first. If ttl is not specified for a session, it defaults to 24h.
.google.protobuf.Duration ttl = 9 [(.google.api.field_behavior) = OPTIONAL];
-
mergeTtl
public ExecutionConfig.Builder mergeTtl(com.google.protobuf.Duration value)
Optional. The duration after which the workload will be terminated. When the workload passes this ttl, it will be unconditionally killed without waiting for ongoing work to finish. Minimum value is 10 minutes; maximum value is 14 days (see JSON representation of [Duration](https://developers.google.com/protocol-buffers/docs/proto3#json)). If both ttl and idle_ttl are specified, the conditions are treated as and OR: the workload will be terminated when it has been idle for idle_ttl or when the ttl has passed, whichever comes first. If ttl is not specified for a session, it defaults to 24h.
.google.protobuf.Duration ttl = 9 [(.google.api.field_behavior) = OPTIONAL];
-
clearTtl
public ExecutionConfig.Builder clearTtl()
Optional. The duration after which the workload will be terminated. When the workload passes this ttl, it will be unconditionally killed without waiting for ongoing work to finish. Minimum value is 10 minutes; maximum value is 14 days (see JSON representation of [Duration](https://developers.google.com/protocol-buffers/docs/proto3#json)). If both ttl and idle_ttl are specified, the conditions are treated as and OR: the workload will be terminated when it has been idle for idle_ttl or when the ttl has passed, whichever comes first. If ttl is not specified for a session, it defaults to 24h.
.google.protobuf.Duration ttl = 9 [(.google.api.field_behavior) = OPTIONAL];
-
getTtlBuilder
public com.google.protobuf.Duration.Builder getTtlBuilder()
Optional. The duration after which the workload will be terminated. When the workload passes this ttl, it will be unconditionally killed without waiting for ongoing work to finish. Minimum value is 10 minutes; maximum value is 14 days (see JSON representation of [Duration](https://developers.google.com/protocol-buffers/docs/proto3#json)). If both ttl and idle_ttl are specified, the conditions are treated as and OR: the workload will be terminated when it has been idle for idle_ttl or when the ttl has passed, whichever comes first. If ttl is not specified for a session, it defaults to 24h.
.google.protobuf.Duration ttl = 9 [(.google.api.field_behavior) = OPTIONAL];
-
getTtlOrBuilder
public com.google.protobuf.DurationOrBuilder getTtlOrBuilder()
Optional. The duration after which the workload will be terminated. When the workload passes this ttl, it will be unconditionally killed without waiting for ongoing work to finish. Minimum value is 10 minutes; maximum value is 14 days (see JSON representation of [Duration](https://developers.google.com/protocol-buffers/docs/proto3#json)). If both ttl and idle_ttl are specified, the conditions are treated as and OR: the workload will be terminated when it has been idle for idle_ttl or when the ttl has passed, whichever comes first. If ttl is not specified for a session, it defaults to 24h.
.google.protobuf.Duration ttl = 9 [(.google.api.field_behavior) = OPTIONAL];
- Specified by:
getTtlOrBuilder
in interfaceExecutionConfigOrBuilder
-
getStagingBucket
public String getStagingBucket()
Optional. A Cloud Storage bucket used to stage workload dependencies, config files, and store workload output and other ephemeral data, such as Spark history files. If you do not specify a staging bucket, Cloud Dataproc will determine a Cloud Storage location according to the region where your workload is running, and then create and manage project-level, per-location staging and temporary buckets. **This field requires a Cloud Storage bucket name, not a `gs://...` URI to a Cloud Storage bucket.**
string staging_bucket = 10 [(.google.api.field_behavior) = OPTIONAL];
- Specified by:
getStagingBucket
in interfaceExecutionConfigOrBuilder
- Returns:
- The stagingBucket.
-
getStagingBucketBytes
public com.google.protobuf.ByteString getStagingBucketBytes()
Optional. A Cloud Storage bucket used to stage workload dependencies, config files, and store workload output and other ephemeral data, such as Spark history files. If you do not specify a staging bucket, Cloud Dataproc will determine a Cloud Storage location according to the region where your workload is running, and then create and manage project-level, per-location staging and temporary buckets. **This field requires a Cloud Storage bucket name, not a `gs://...` URI to a Cloud Storage bucket.**
string staging_bucket = 10 [(.google.api.field_behavior) = OPTIONAL];
- Specified by:
getStagingBucketBytes
in interfaceExecutionConfigOrBuilder
- Returns:
- The bytes for stagingBucket.
-
setStagingBucket
public ExecutionConfig.Builder setStagingBucket(String value)
Optional. A Cloud Storage bucket used to stage workload dependencies, config files, and store workload output and other ephemeral data, such as Spark history files. If you do not specify a staging bucket, Cloud Dataproc will determine a Cloud Storage location according to the region where your workload is running, and then create and manage project-level, per-location staging and temporary buckets. **This field requires a Cloud Storage bucket name, not a `gs://...` URI to a Cloud Storage bucket.**
string staging_bucket = 10 [(.google.api.field_behavior) = OPTIONAL];
- Parameters:
value
- The stagingBucket to set.- Returns:
- This builder for chaining.
-
clearStagingBucket
public ExecutionConfig.Builder clearStagingBucket()
Optional. A Cloud Storage bucket used to stage workload dependencies, config files, and store workload output and other ephemeral data, such as Spark history files. If you do not specify a staging bucket, Cloud Dataproc will determine a Cloud Storage location according to the region where your workload is running, and then create and manage project-level, per-location staging and temporary buckets. **This field requires a Cloud Storage bucket name, not a `gs://...` URI to a Cloud Storage bucket.**
string staging_bucket = 10 [(.google.api.field_behavior) = OPTIONAL];
- Returns:
- This builder for chaining.
-
setStagingBucketBytes
public ExecutionConfig.Builder setStagingBucketBytes(com.google.protobuf.ByteString value)
Optional. A Cloud Storage bucket used to stage workload dependencies, config files, and store workload output and other ephemeral data, such as Spark history files. If you do not specify a staging bucket, Cloud Dataproc will determine a Cloud Storage location according to the region where your workload is running, and then create and manage project-level, per-location staging and temporary buckets. **This field requires a Cloud Storage bucket name, not a `gs://...` URI to a Cloud Storage bucket.**
string staging_bucket = 10 [(.google.api.field_behavior) = OPTIONAL];
- Parameters:
value
- The bytes for stagingBucket to set.- Returns:
- This builder for chaining.
-
setUnknownFields
public final ExecutionConfig.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
- Specified by:
setUnknownFields
in interfacecom.google.protobuf.Message.Builder
- Overrides:
setUnknownFields
in classcom.google.protobuf.GeneratedMessageV3.Builder<ExecutionConfig.Builder>
-
mergeUnknownFields
public final ExecutionConfig.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
- Specified by:
mergeUnknownFields
in interfacecom.google.protobuf.Message.Builder
- Overrides:
mergeUnknownFields
in classcom.google.protobuf.GeneratedMessageV3.Builder<ExecutionConfig.Builder>
-
-