Package com.google.cloud.dataproc.v1
Class ExecutionConfig
- java.lang.Object
-
- com.google.protobuf.AbstractMessageLite
-
- com.google.protobuf.AbstractMessage
-
- com.google.protobuf.GeneratedMessageV3
-
- com.google.cloud.dataproc.v1.ExecutionConfig
-
- All Implemented Interfaces:
ExecutionConfigOrBuilder
,com.google.protobuf.Message
,com.google.protobuf.MessageLite
,com.google.protobuf.MessageLiteOrBuilder
,com.google.protobuf.MessageOrBuilder
,Serializable
public final class ExecutionConfig extends com.google.protobuf.GeneratedMessageV3 implements ExecutionConfigOrBuilder
Execution configuration for a workload.
Protobuf typegoogle.cloud.dataproc.v1.ExecutionConfig
- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
ExecutionConfig.Builder
Execution configuration for a workload.static class
ExecutionConfig.NetworkCase
-
Nested classes/interfaces inherited from class com.google.protobuf.GeneratedMessageV3
com.google.protobuf.GeneratedMessageV3.BuilderParent, com.google.protobuf.GeneratedMessageV3.ExtendableBuilder<MessageT extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageT>,BuilderT extends com.google.protobuf.GeneratedMessageV3.ExtendableBuilder<MessageT,BuilderT>>, com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageT extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageT>>, com.google.protobuf.GeneratedMessageV3.ExtendableMessageOrBuilder<MessageT extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageT>>, com.google.protobuf.GeneratedMessageV3.FieldAccessorTable, com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter
-
-
Field Summary
Fields Modifier and Type Field Description static int
KMS_KEY_FIELD_NUMBER
static int
NETWORK_TAGS_FIELD_NUMBER
static int
NETWORK_URI_FIELD_NUMBER
static int
SERVICE_ACCOUNT_FIELD_NUMBER
static int
STAGING_BUCKET_FIELD_NUMBER
static int
SUBNETWORK_URI_FIELD_NUMBER
static int
TTL_FIELD_NUMBER
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
equals(Object obj)
static ExecutionConfig
getDefaultInstance()
ExecutionConfig
getDefaultInstanceForType()
static com.google.protobuf.Descriptors.Descriptor
getDescriptor()
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.com.google.protobuf.Parser<ExecutionConfig>
getParserForType()
int
getSerializedSize()
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.DurationOrBuilder
getTtlOrBuilder()
Optional.int
hashCode()
boolean
hasNetworkUri()
Optional.boolean
hasSubnetworkUri()
Optional.boolean
hasTtl()
Optional.protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable()
boolean
isInitialized()
static ExecutionConfig.Builder
newBuilder()
static ExecutionConfig.Builder
newBuilder(ExecutionConfig prototype)
ExecutionConfig.Builder
newBuilderForType()
protected ExecutionConfig.Builder
newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)
protected Object
newInstance(com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter unused)
static ExecutionConfig
parseDelimitedFrom(InputStream input)
static ExecutionConfig
parseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
static ExecutionConfig
parseFrom(byte[] data)
static ExecutionConfig
parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
static ExecutionConfig
parseFrom(com.google.protobuf.ByteString data)
static ExecutionConfig
parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
static ExecutionConfig
parseFrom(com.google.protobuf.CodedInputStream input)
static ExecutionConfig
parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
static ExecutionConfig
parseFrom(InputStream input)
static ExecutionConfig
parseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
static ExecutionConfig
parseFrom(ByteBuffer data)
static ExecutionConfig
parseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
static com.google.protobuf.Parser<ExecutionConfig>
parser()
ExecutionConfig.Builder
toBuilder()
void
writeTo(com.google.protobuf.CodedOutputStream output)
-
Methods inherited from class com.google.protobuf.GeneratedMessageV3
canUseUnsafe, computeStringSize, computeStringSizeNoTag, emptyBooleanList, emptyDoubleList, emptyFloatList, emptyIntList, emptyLongList, getAllFields, getDescriptorForType, getField, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof, internalGetMapField, isStringEmpty, makeExtensionsImmutable, makeMutableCopy, mergeFromAndMakeImmutableInternal, mutableCopy, mutableCopy, mutableCopy, mutableCopy, mutableCopy, newBooleanList, newBuilderForType, newDoubleList, newFloatList, newIntList, newLongList, parseDelimitedWithIOException, parseDelimitedWithIOException, parseUnknownField, parseUnknownFieldProto3, parseWithIOException, parseWithIOException, parseWithIOException, parseWithIOException, serializeBooleanMapTo, serializeIntegerMapTo, serializeLongMapTo, serializeStringMapTo, writeReplace, writeString, writeStringNoTag
-
Methods inherited from class com.google.protobuf.AbstractMessage
findInitializationErrors, getInitializationErrorString, hashBoolean, hashEnum, hashEnumList, hashFields, hashLong, toString
-
Methods inherited from class com.google.protobuf.AbstractMessageLite
addAll, addAll, checkByteStringIsUtf8, toByteArray, toByteString, writeDelimitedTo, writeTo
-
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
-
-
-
-
Field Detail
-
SERVICE_ACCOUNT_FIELD_NUMBER
public static final int SERVICE_ACCOUNT_FIELD_NUMBER
- See Also:
- Constant Field Values
-
NETWORK_URI_FIELD_NUMBER
public static final int NETWORK_URI_FIELD_NUMBER
- See Also:
- Constant Field Values
-
SUBNETWORK_URI_FIELD_NUMBER
public static final int SUBNETWORK_URI_FIELD_NUMBER
- See Also:
- Constant Field Values
-
NETWORK_TAGS_FIELD_NUMBER
public static final int NETWORK_TAGS_FIELD_NUMBER
- See Also:
- Constant Field Values
-
KMS_KEY_FIELD_NUMBER
public static final int KMS_KEY_FIELD_NUMBER
- See Also:
- Constant Field Values
-
TTL_FIELD_NUMBER
public static final int TTL_FIELD_NUMBER
- See Also:
- Constant Field Values
-
STAGING_BUCKET_FIELD_NUMBER
public static final int STAGING_BUCKET_FIELD_NUMBER
- See Also:
- Constant Field Values
-
-
Method Detail
-
newInstance
protected Object newInstance(com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter unused)
- Overrides:
newInstance
in classcom.google.protobuf.GeneratedMessageV3
-
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
-
getNetworkCase
public ExecutionConfig.NetworkCase getNetworkCase()
- Specified by:
getNetworkCase
in interfaceExecutionConfigOrBuilder
-
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.
-
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.
-
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.
-
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.
-
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.
-
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.
-
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.
-
isInitialized
public final boolean isInitialized()
- Specified by:
isInitialized
in interfacecom.google.protobuf.MessageLiteOrBuilder
- Overrides:
isInitialized
in classcom.google.protobuf.GeneratedMessageV3
-
writeTo
public void writeTo(com.google.protobuf.CodedOutputStream output) throws IOException
- Specified by:
writeTo
in interfacecom.google.protobuf.MessageLite
- Overrides:
writeTo
in classcom.google.protobuf.GeneratedMessageV3
- Throws:
IOException
-
getSerializedSize
public int getSerializedSize()
- Specified by:
getSerializedSize
in interfacecom.google.protobuf.MessageLite
- Overrides:
getSerializedSize
in classcom.google.protobuf.GeneratedMessageV3
-
equals
public boolean equals(Object obj)
- Specified by:
equals
in interfacecom.google.protobuf.Message
- Overrides:
equals
in classcom.google.protobuf.AbstractMessage
-
hashCode
public int hashCode()
- Specified by:
hashCode
in interfacecom.google.protobuf.Message
- Overrides:
hashCode
in classcom.google.protobuf.AbstractMessage
-
parseFrom
public static ExecutionConfig parseFrom(ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException
- Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static ExecutionConfig parseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
- Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static ExecutionConfig parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException
- Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static ExecutionConfig parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
- Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static ExecutionConfig parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException
- Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static ExecutionConfig parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
- Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static ExecutionConfig parseFrom(InputStream input) throws IOException
- Throws:
IOException
-
parseFrom
public static ExecutionConfig parseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
- Throws:
IOException
-
parseDelimitedFrom
public static ExecutionConfig parseDelimitedFrom(InputStream input) throws IOException
- Throws:
IOException
-
parseDelimitedFrom
public static ExecutionConfig parseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
- Throws:
IOException
-
parseFrom
public static ExecutionConfig parseFrom(com.google.protobuf.CodedInputStream input) throws IOException
- Throws:
IOException
-
parseFrom
public static ExecutionConfig parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
- Throws:
IOException
-
newBuilderForType
public ExecutionConfig.Builder newBuilderForType()
- Specified by:
newBuilderForType
in interfacecom.google.protobuf.Message
- Specified by:
newBuilderForType
in interfacecom.google.protobuf.MessageLite
-
newBuilder
public static ExecutionConfig.Builder newBuilder()
-
newBuilder
public static ExecutionConfig.Builder newBuilder(ExecutionConfig prototype)
-
toBuilder
public ExecutionConfig.Builder toBuilder()
- Specified by:
toBuilder
in interfacecom.google.protobuf.Message
- Specified by:
toBuilder
in interfacecom.google.protobuf.MessageLite
-
newBuilderForType
protected ExecutionConfig.Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)
- Specified by:
newBuilderForType
in classcom.google.protobuf.GeneratedMessageV3
-
getDefaultInstance
public static ExecutionConfig getDefaultInstance()
-
parser
public static com.google.protobuf.Parser<ExecutionConfig> parser()
-
getParserForType
public com.google.protobuf.Parser<ExecutionConfig> getParserForType()
- Specified by:
getParserForType
in interfacecom.google.protobuf.Message
- Specified by:
getParserForType
in interfacecom.google.protobuf.MessageLite
- Overrides:
getParserForType
in classcom.google.protobuf.GeneratedMessageV3
-
getDefaultInstanceForType
public ExecutionConfig getDefaultInstanceForType()
- Specified by:
getDefaultInstanceForType
in interfacecom.google.protobuf.MessageLiteOrBuilder
- Specified by:
getDefaultInstanceForType
in interfacecom.google.protobuf.MessageOrBuilder
-
-