public final class ClusterConfig extends com.google.protobuf.GeneratedMessageV3 implements ClusterConfigOrBuilder
The cluster config.Protobuf type
google.cloud.dataproc.v1.ClusterConfig| Modifier and Type | Class and Description |
|---|---|
static class |
ClusterConfig.Builder
The cluster config.
|
com.google.protobuf.GeneratedMessageV3.BuilderParent, com.google.protobuf.GeneratedMessageV3.ExtendableBuilder<MessageType extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage,BuilderType extends com.google.protobuf.GeneratedMessageV3.ExtendableBuilder<MessageType,BuilderType>>, com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageType extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage>, com.google.protobuf.GeneratedMessageV3.ExtendableMessageOrBuilder<MessageType extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage>, com.google.protobuf.GeneratedMessageV3.FieldAccessorTable, com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter| Modifier and Type | Field and Description |
|---|---|
static int |
CONFIG_BUCKET_FIELD_NUMBER |
static int |
ENCRYPTION_CONFIG_FIELD_NUMBER |
static int |
GCE_CLUSTER_CONFIG_FIELD_NUMBER |
static int |
INITIALIZATION_ACTIONS_FIELD_NUMBER |
static int |
MASTER_CONFIG_FIELD_NUMBER |
static int |
SECONDARY_WORKER_CONFIG_FIELD_NUMBER |
static int |
SOFTWARE_CONFIG_FIELD_NUMBER |
static int |
WORKER_CONFIG_FIELD_NUMBER |
canUseUnsafe, computeStringSize, computeStringSizeNoTag, emptyBooleanList, emptyDoubleList, emptyFloatList, emptyIntList, emptyLongList, getAllFields, getDescriptorForType, getField, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, hasField, hasOneof, internalGetMapField, makeExtensionsImmutable, mergeFromAndMakeImmutableInternal, mutableCopy, mutableCopy, mutableCopy, mutableCopy, mutableCopy, newBooleanList, newBuilderForType, newDoubleList, newFloatList, newInstance, newIntList, newLongList, parseDelimitedWithIOException, parseDelimitedWithIOException, parseUnknownField, parseUnknownFieldProto3, parseWithIOException, parseWithIOException, parseWithIOException, parseWithIOException, serializeBooleanMapTo, serializeIntegerMapTo, serializeLongMapTo, serializeStringMapTo, writeReplace, writeString, writeStringNoTagfindInitializationErrors, getInitializationErrorString, hashBoolean, hashEnum, hashEnumList, hashFields, hashLong, toStringaddAll, addAll, checkByteStringIsUtf8, toByteArray, toByteString, writeDelimitedTo, writeToclone, finalize, getClass, notify, notifyAll, wait, wait, waitpublic static final int CONFIG_BUCKET_FIELD_NUMBER
public static final int GCE_CLUSTER_CONFIG_FIELD_NUMBER
public static final int MASTER_CONFIG_FIELD_NUMBER
public static final int WORKER_CONFIG_FIELD_NUMBER
public static final int SECONDARY_WORKER_CONFIG_FIELD_NUMBER
public static final int SOFTWARE_CONFIG_FIELD_NUMBER
public static final int INITIALIZATION_ACTIONS_FIELD_NUMBER
public static final int ENCRYPTION_CONFIG_FIELD_NUMBER
public final com.google.protobuf.UnknownFieldSet getUnknownFields()
getUnknownFields in interface com.google.protobuf.MessageOrBuildergetUnknownFields in class com.google.protobuf.GeneratedMessageV3public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessageV3public String getConfigBucket()
Optional. A Google Cloud Storage bucket used to stage job dependencies, config files, and job driver console output. If you do not specify a staging bucket, Cloud Dataproc will determine a Cloud Storage location (US, ASIA, or EU) for your cluster's staging bucket according to the Google Compute Engine zone where your cluster is deployed, and then create and manage this project-level, per-location bucket (see [Cloud Dataproc staging bucket](/dataproc/docs/concepts/configuring-clusters/staging-bucket)).
string config_bucket = 1;getConfigBucket in interface ClusterConfigOrBuilderpublic com.google.protobuf.ByteString getConfigBucketBytes()
Optional. A Google Cloud Storage bucket used to stage job dependencies, config files, and job driver console output. If you do not specify a staging bucket, Cloud Dataproc will determine a Cloud Storage location (US, ASIA, or EU) for your cluster's staging bucket according to the Google Compute Engine zone where your cluster is deployed, and then create and manage this project-level, per-location bucket (see [Cloud Dataproc staging bucket](/dataproc/docs/concepts/configuring-clusters/staging-bucket)).
string config_bucket = 1;getConfigBucketBytes in interface ClusterConfigOrBuilderpublic boolean hasGceClusterConfig()
Optional. The shared Compute Engine config settings for all instances in a cluster.
.google.cloud.dataproc.v1.GceClusterConfig gce_cluster_config = 8;hasGceClusterConfig in interface ClusterConfigOrBuilderpublic GceClusterConfig getGceClusterConfig()
Optional. The shared Compute Engine config settings for all instances in a cluster.
.google.cloud.dataproc.v1.GceClusterConfig gce_cluster_config = 8;getGceClusterConfig in interface ClusterConfigOrBuilderpublic GceClusterConfigOrBuilder getGceClusterConfigOrBuilder()
Optional. The shared Compute Engine config settings for all instances in a cluster.
.google.cloud.dataproc.v1.GceClusterConfig gce_cluster_config = 8;getGceClusterConfigOrBuilder in interface ClusterConfigOrBuilderpublic boolean hasMasterConfig()
Optional. The Compute Engine config settings for the master instance in a cluster.
.google.cloud.dataproc.v1.InstanceGroupConfig master_config = 9;hasMasterConfig in interface ClusterConfigOrBuilderpublic InstanceGroupConfig getMasterConfig()
Optional. The Compute Engine config settings for the master instance in a cluster.
.google.cloud.dataproc.v1.InstanceGroupConfig master_config = 9;getMasterConfig in interface ClusterConfigOrBuilderpublic InstanceGroupConfigOrBuilder getMasterConfigOrBuilder()
Optional. The Compute Engine config settings for the master instance in a cluster.
.google.cloud.dataproc.v1.InstanceGroupConfig master_config = 9;getMasterConfigOrBuilder in interface ClusterConfigOrBuilderpublic boolean hasWorkerConfig()
Optional. The Compute Engine config settings for worker instances in a cluster.
.google.cloud.dataproc.v1.InstanceGroupConfig worker_config = 10;hasWorkerConfig in interface ClusterConfigOrBuilderpublic InstanceGroupConfig getWorkerConfig()
Optional. The Compute Engine config settings for worker instances in a cluster.
.google.cloud.dataproc.v1.InstanceGroupConfig worker_config = 10;getWorkerConfig in interface ClusterConfigOrBuilderpublic InstanceGroupConfigOrBuilder getWorkerConfigOrBuilder()
Optional. The Compute Engine config settings for worker instances in a cluster.
.google.cloud.dataproc.v1.InstanceGroupConfig worker_config = 10;getWorkerConfigOrBuilder in interface ClusterConfigOrBuilderpublic boolean hasSecondaryWorkerConfig()
Optional. The Compute Engine config settings for additional worker instances in a cluster.
.google.cloud.dataproc.v1.InstanceGroupConfig secondary_worker_config = 12;hasSecondaryWorkerConfig in interface ClusterConfigOrBuilderpublic InstanceGroupConfig getSecondaryWorkerConfig()
Optional. The Compute Engine config settings for additional worker instances in a cluster.
.google.cloud.dataproc.v1.InstanceGroupConfig secondary_worker_config = 12;getSecondaryWorkerConfig in interface ClusterConfigOrBuilderpublic InstanceGroupConfigOrBuilder getSecondaryWorkerConfigOrBuilder()
Optional. The Compute Engine config settings for additional worker instances in a cluster.
.google.cloud.dataproc.v1.InstanceGroupConfig secondary_worker_config = 12;getSecondaryWorkerConfigOrBuilder in interface ClusterConfigOrBuilderpublic boolean hasSoftwareConfig()
Optional. The config settings for software inside the cluster.
.google.cloud.dataproc.v1.SoftwareConfig software_config = 13;hasSoftwareConfig in interface ClusterConfigOrBuilderpublic SoftwareConfig getSoftwareConfig()
Optional. The config settings for software inside the cluster.
.google.cloud.dataproc.v1.SoftwareConfig software_config = 13;getSoftwareConfig in interface ClusterConfigOrBuilderpublic SoftwareConfigOrBuilder getSoftwareConfigOrBuilder()
Optional. The config settings for software inside the cluster.
.google.cloud.dataproc.v1.SoftwareConfig software_config = 13;getSoftwareConfigOrBuilder in interface ClusterConfigOrBuilderpublic List<NodeInitializationAction> getInitializationActionsList()
Optional. Commands to execute on each node after config is
completed. By default, executables are run on master and all worker nodes.
You can test a node's `role` metadata to run an executable on
a master or worker node, as shown below using `curl` (you can also use
`wget`):
ROLE=$(curl -H Metadata-Flavor:Google
http://metadata/computeMetadata/v1/instance/attributes/dataproc-role)
if [[ "${ROLE}" == 'Master' ]]; then
... master specific actions ...
else
... worker specific actions ...
fi
repeated .google.cloud.dataproc.v1.NodeInitializationAction initialization_actions = 11;
getInitializationActionsList in interface ClusterConfigOrBuilderpublic List<? extends NodeInitializationActionOrBuilder> getInitializationActionsOrBuilderList()
Optional. Commands to execute on each node after config is
completed. By default, executables are run on master and all worker nodes.
You can test a node's `role` metadata to run an executable on
a master or worker node, as shown below using `curl` (you can also use
`wget`):
ROLE=$(curl -H Metadata-Flavor:Google
http://metadata/computeMetadata/v1/instance/attributes/dataproc-role)
if [[ "${ROLE}" == 'Master' ]]; then
... master specific actions ...
else
... worker specific actions ...
fi
repeated .google.cloud.dataproc.v1.NodeInitializationAction initialization_actions = 11;
getInitializationActionsOrBuilderList in interface ClusterConfigOrBuilderpublic int getInitializationActionsCount()
Optional. Commands to execute on each node after config is
completed. By default, executables are run on master and all worker nodes.
You can test a node's `role` metadata to run an executable on
a master or worker node, as shown below using `curl` (you can also use
`wget`):
ROLE=$(curl -H Metadata-Flavor:Google
http://metadata/computeMetadata/v1/instance/attributes/dataproc-role)
if [[ "${ROLE}" == 'Master' ]]; then
... master specific actions ...
else
... worker specific actions ...
fi
repeated .google.cloud.dataproc.v1.NodeInitializationAction initialization_actions = 11;
getInitializationActionsCount in interface ClusterConfigOrBuilderpublic NodeInitializationAction getInitializationActions(int index)
Optional. Commands to execute on each node after config is
completed. By default, executables are run on master and all worker nodes.
You can test a node's `role` metadata to run an executable on
a master or worker node, as shown below using `curl` (you can also use
`wget`):
ROLE=$(curl -H Metadata-Flavor:Google
http://metadata/computeMetadata/v1/instance/attributes/dataproc-role)
if [[ "${ROLE}" == 'Master' ]]; then
... master specific actions ...
else
... worker specific actions ...
fi
repeated .google.cloud.dataproc.v1.NodeInitializationAction initialization_actions = 11;
getInitializationActions in interface ClusterConfigOrBuilderpublic NodeInitializationActionOrBuilder getInitializationActionsOrBuilder(int index)
Optional. Commands to execute on each node after config is
completed. By default, executables are run on master and all worker nodes.
You can test a node's `role` metadata to run an executable on
a master or worker node, as shown below using `curl` (you can also use
`wget`):
ROLE=$(curl -H Metadata-Flavor:Google
http://metadata/computeMetadata/v1/instance/attributes/dataproc-role)
if [[ "${ROLE}" == 'Master' ]]; then
... master specific actions ...
else
... worker specific actions ...
fi
repeated .google.cloud.dataproc.v1.NodeInitializationAction initialization_actions = 11;
getInitializationActionsOrBuilder in interface ClusterConfigOrBuilderpublic boolean hasEncryptionConfig()
Optional. Encryption settings for the cluster.
.google.cloud.dataproc.v1.EncryptionConfig encryption_config = 15;hasEncryptionConfig in interface ClusterConfigOrBuilderpublic EncryptionConfig getEncryptionConfig()
Optional. Encryption settings for the cluster.
.google.cloud.dataproc.v1.EncryptionConfig encryption_config = 15;getEncryptionConfig in interface ClusterConfigOrBuilderpublic EncryptionConfigOrBuilder getEncryptionConfigOrBuilder()
Optional. Encryption settings for the cluster.
.google.cloud.dataproc.v1.EncryptionConfig encryption_config = 15;getEncryptionConfigOrBuilder in interface ClusterConfigOrBuilderpublic final boolean isInitialized()
isInitialized in interface com.google.protobuf.MessageLiteOrBuilderisInitialized in class com.google.protobuf.GeneratedMessageV3public void writeTo(com.google.protobuf.CodedOutputStream output)
throws IOException
writeTo in interface com.google.protobuf.MessageLitewriteTo in class com.google.protobuf.GeneratedMessageV3IOExceptionpublic int getSerializedSize()
getSerializedSize in interface com.google.protobuf.MessageLitegetSerializedSize in class com.google.protobuf.GeneratedMessageV3public boolean equals(Object obj)
equals in interface com.google.protobuf.Messageequals in class com.google.protobuf.AbstractMessagepublic int hashCode()
hashCode in interface com.google.protobuf.MessagehashCode in class com.google.protobuf.AbstractMessagepublic static ClusterConfig parseFrom(ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static ClusterConfig parseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static ClusterConfig parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static ClusterConfig parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static ClusterConfig parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static ClusterConfig parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static ClusterConfig parseFrom(InputStream input) throws IOException
IOExceptionpublic static ClusterConfig parseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
IOExceptionpublic static ClusterConfig parseDelimitedFrom(InputStream input) throws IOException
IOExceptionpublic static ClusterConfig parseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
IOExceptionpublic static ClusterConfig parseFrom(com.google.protobuf.CodedInputStream input) throws IOException
IOExceptionpublic static ClusterConfig parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
IOExceptionpublic ClusterConfig.Builder newBuilderForType()
newBuilderForType in interface com.google.protobuf.MessagenewBuilderForType in interface com.google.protobuf.MessageLitepublic static ClusterConfig.Builder newBuilder()
public static ClusterConfig.Builder newBuilder(ClusterConfig prototype)
public ClusterConfig.Builder toBuilder()
toBuilder in interface com.google.protobuf.MessagetoBuilder in interface com.google.protobuf.MessageLiteprotected ClusterConfig.Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)
newBuilderForType in class com.google.protobuf.GeneratedMessageV3public static ClusterConfig getDefaultInstance()
public static com.google.protobuf.Parser<ClusterConfig> parser()
public com.google.protobuf.Parser<ClusterConfig> getParserForType()
getParserForType in interface com.google.protobuf.MessagegetParserForType in interface com.google.protobuf.MessageLitegetParserForType in class com.google.protobuf.GeneratedMessageV3public ClusterConfig getDefaultInstanceForType()
getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuildergetDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilderCopyright © 2019 Google LLC. All rights reserved.