public final class ClusterConfig extends 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.
|
GeneratedMessageV3.BuilderParent, GeneratedMessageV3.ExtendableBuilder<MessageType extends GeneratedMessageV3.ExtendableMessage,BuilderType extends GeneratedMessageV3.ExtendableBuilder<MessageType,BuilderType>>, GeneratedMessageV3.ExtendableMessage<MessageType extends GeneratedMessageV3.ExtendableMessage>, GeneratedMessageV3.ExtendableMessageOrBuilder<MessageType extends GeneratedMessageV3.ExtendableMessage>, GeneratedMessageV3.FieldAccessorTable| Modifier and Type | Field and Description |
|---|---|
static int |
CONFIG_BUCKET_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 |
alwaysUseFieldBuilders, unknownFieldsmemoizedSizememoizedHashCodecanUseUnsafe, computeStringSize, computeStringSizeNoTag, getAllFields, getDescriptorForType, getField, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, hasField, hasOneof, internalGetMapField, makeExtensionsImmutable, newBuilderForType, 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, waitfindInitializationErrors, getAllFields, getDescriptorForType, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, hasField, hasOneoftoByteArray, toByteString, writeDelimitedTo, writeTopublic 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 final UnknownFieldSet getUnknownFields()
getUnknownFields in interface MessageOrBuildergetUnknownFields in class GeneratedMessageV3public static final Descriptors.Descriptor getDescriptor()
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
internalGetFieldAccessorTable in class GeneratedMessageV3public java.lang.String getConfigBucket()
Optional. A Google Cloud Storage staging bucket used for sharing generated SSH keys and config. If you do not specify a staging bucket, Cloud Dataproc will determine an appropriate 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 it will create and manage this project-level, per-location bucket for you.
string config_bucket = 1;getConfigBucket in interface ClusterConfigOrBuilderpublic ByteString getConfigBucketBytes()
Optional. A Google Cloud Storage staging bucket used for sharing generated SSH keys and config. If you do not specify a staging bucket, Cloud Dataproc will determine an appropriate 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 it will create and manage this project-level, per-location bucket for you.
string config_bucket = 1;getConfigBucketBytes in interface ClusterConfigOrBuilderpublic boolean hasGceClusterConfig()
Required. The shared Google 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()
Required. The shared Google 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()
Required. The shared Google 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 Google 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 Google 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 Google 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 Google 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 Google 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 Google 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 Google 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 Google 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 Google 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 java.util.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 java.util.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 final boolean isInitialized()
isInitialized in interface MessageLiteOrBuilderisInitialized in class GeneratedMessageV3public void writeTo(CodedOutputStream output) throws java.io.IOException
writeTo in interface MessageLitewriteTo in class GeneratedMessageV3java.io.IOExceptionpublic int getSerializedSize()
getSerializedSize in interface MessageLitegetSerializedSize in class GeneratedMessageV3public boolean equals(java.lang.Object obj)
equals in interface Messageequals in class AbstractMessagepublic int hashCode()
hashCode in interface MessagehashCode in class AbstractMessagepublic static ClusterConfig parseFrom(java.nio.ByteBuffer data) throws InvalidProtocolBufferException
InvalidProtocolBufferExceptionpublic static ClusterConfig parseFrom(java.nio.ByteBuffer data, ExtensionRegistryLite extensionRegistry) throws InvalidProtocolBufferException
InvalidProtocolBufferExceptionpublic static ClusterConfig parseFrom(ByteString data) throws InvalidProtocolBufferException
InvalidProtocolBufferExceptionpublic static ClusterConfig parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry) throws InvalidProtocolBufferException
InvalidProtocolBufferExceptionpublic static ClusterConfig parseFrom(byte[] data) throws InvalidProtocolBufferException
InvalidProtocolBufferExceptionpublic static ClusterConfig parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry) throws InvalidProtocolBufferException
InvalidProtocolBufferExceptionpublic static ClusterConfig parseFrom(java.io.InputStream input) throws java.io.IOException
java.io.IOExceptionpublic static ClusterConfig parseFrom(java.io.InputStream input, ExtensionRegistryLite extensionRegistry) throws java.io.IOException
java.io.IOExceptionpublic static ClusterConfig parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException
java.io.IOExceptionpublic static ClusterConfig parseDelimitedFrom(java.io.InputStream input, ExtensionRegistryLite extensionRegistry) throws java.io.IOException
java.io.IOExceptionpublic static ClusterConfig parseFrom(CodedInputStream input) throws java.io.IOException
java.io.IOExceptionpublic static ClusterConfig parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry) throws java.io.IOException
java.io.IOExceptionpublic ClusterConfig.Builder newBuilderForType()
newBuilderForType in interface MessagenewBuilderForType in interface MessageLitepublic static ClusterConfig.Builder newBuilder()
public static ClusterConfig.Builder newBuilder(ClusterConfig prototype)
public ClusterConfig.Builder toBuilder()
toBuilder in interface MessagetoBuilder in interface MessageLiteprotected ClusterConfig.Builder newBuilderForType(GeneratedMessageV3.BuilderParent parent)
newBuilderForType in class GeneratedMessageV3public static ClusterConfig getDefaultInstance()
public static Parser<ClusterConfig> parser()
public Parser<ClusterConfig> getParserForType()
getParserForType in interface MessagegetParserForType in interface MessageLitegetParserForType in class GeneratedMessageV3public ClusterConfig getDefaultInstanceForType()
getDefaultInstanceForType in interface MessageLiteOrBuildergetDefaultInstanceForType in interface MessageOrBuilder