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, unknownFields
memoizedSize
memoizedHashCode
canUseUnsafe, 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, writeStringNoTag
findInitializationErrors, getInitializationErrorString, hashBoolean, hashEnum, hashEnumList, hashFields, hashLong, toString
addAll, addAll, checkByteStringIsUtf8, toByteArray, toByteString, writeDelimitedTo, writeTo
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
findInitializationErrors, getAllFields, getDescriptorForType, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, hasField, hasOneof
toByteArray, toByteString, writeDelimitedTo, writeTo
public 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 MessageOrBuilder
getUnknownFields
in class GeneratedMessageV3
public static final Descriptors.Descriptor getDescriptor()
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
internalGetFieldAccessorTable
in class GeneratedMessageV3
public 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 ClusterConfigOrBuilder
public 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 ClusterConfigOrBuilder
public 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 ClusterConfigOrBuilder
public 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 ClusterConfigOrBuilder
public 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 ClusterConfigOrBuilder
public 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 ClusterConfigOrBuilder
public 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 ClusterConfigOrBuilder
public 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 ClusterConfigOrBuilder
public 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 ClusterConfigOrBuilder
public 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 ClusterConfigOrBuilder
public 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 ClusterConfigOrBuilder
public 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 ClusterConfigOrBuilder
public 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 ClusterConfigOrBuilder
public 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 ClusterConfigOrBuilder
public boolean hasSoftwareConfig()
Optional. The config settings for software inside the cluster.
.google.cloud.dataproc.v1.SoftwareConfig software_config = 13;
hasSoftwareConfig
in interface ClusterConfigOrBuilder
public SoftwareConfig getSoftwareConfig()
Optional. The config settings for software inside the cluster.
.google.cloud.dataproc.v1.SoftwareConfig software_config = 13;
getSoftwareConfig
in interface ClusterConfigOrBuilder
public SoftwareConfigOrBuilder getSoftwareConfigOrBuilder()
Optional. The config settings for software inside the cluster.
.google.cloud.dataproc.v1.SoftwareConfig software_config = 13;
getSoftwareConfigOrBuilder
in interface ClusterConfigOrBuilder
public 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 ClusterConfigOrBuilder
public 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 ClusterConfigOrBuilder
public 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 ClusterConfigOrBuilder
public 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 ClusterConfigOrBuilder
public 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 ClusterConfigOrBuilder
public final boolean isInitialized()
isInitialized
in interface MessageLiteOrBuilder
isInitialized
in class GeneratedMessageV3
public void writeTo(CodedOutputStream output) throws java.io.IOException
writeTo
in interface MessageLite
writeTo
in class GeneratedMessageV3
java.io.IOException
public int getSerializedSize()
getSerializedSize
in interface MessageLite
getSerializedSize
in class GeneratedMessageV3
public boolean equals(java.lang.Object obj)
equals
in interface Message
equals
in class AbstractMessage
public int hashCode()
hashCode
in interface Message
hashCode
in class AbstractMessage
public static ClusterConfig parseFrom(java.nio.ByteBuffer data) throws InvalidProtocolBufferException
InvalidProtocolBufferException
public static ClusterConfig parseFrom(java.nio.ByteBuffer data, ExtensionRegistryLite extensionRegistry) throws InvalidProtocolBufferException
InvalidProtocolBufferException
public static ClusterConfig parseFrom(ByteString data) throws InvalidProtocolBufferException
InvalidProtocolBufferException
public static ClusterConfig parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry) throws InvalidProtocolBufferException
InvalidProtocolBufferException
public static ClusterConfig parseFrom(byte[] data) throws InvalidProtocolBufferException
InvalidProtocolBufferException
public static ClusterConfig parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry) throws InvalidProtocolBufferException
InvalidProtocolBufferException
public static ClusterConfig parseFrom(java.io.InputStream input) throws java.io.IOException
java.io.IOException
public static ClusterConfig parseFrom(java.io.InputStream input, ExtensionRegistryLite extensionRegistry) throws java.io.IOException
java.io.IOException
public static ClusterConfig parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException
java.io.IOException
public static ClusterConfig parseDelimitedFrom(java.io.InputStream input, ExtensionRegistryLite extensionRegistry) throws java.io.IOException
java.io.IOException
public static ClusterConfig parseFrom(CodedInputStream input) throws java.io.IOException
java.io.IOException
public static ClusterConfig parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry) throws java.io.IOException
java.io.IOException
public ClusterConfig.Builder newBuilderForType()
newBuilderForType
in interface Message
newBuilderForType
in interface MessageLite
public static ClusterConfig.Builder newBuilder()
public static ClusterConfig.Builder newBuilder(ClusterConfig prototype)
public ClusterConfig.Builder toBuilder()
toBuilder
in interface Message
toBuilder
in interface MessageLite
protected ClusterConfig.Builder newBuilderForType(GeneratedMessageV3.BuilderParent parent)
newBuilderForType
in class GeneratedMessageV3
public static ClusterConfig getDefaultInstance()
public static Parser<ClusterConfig> parser()
public Parser<ClusterConfig> getParserForType()
getParserForType
in interface Message
getParserForType
in interface MessageLite
getParserForType
in class GeneratedMessageV3
public ClusterConfig getDefaultInstanceForType()
getDefaultInstanceForType
in interface MessageLiteOrBuilder
getDefaultInstanceForType
in interface MessageOrBuilder