public static final class QueuedResource.Tpu.NodeSpec.MultisliceParams extends GeneratedMessage implements QueuedResource.Tpu.NodeSpec.MultisliceParamsOrBuilderParameters to specify for multislice QueuedResource requests. This message must be populated in case of multislice requests instead of node_id.
Protobuf type google.cloud.tpu.v2.QueuedResource.Tpu.NodeSpec.MultisliceParams
Inheritance
Object > AbstractMessageLite<MessageType,BuilderType> > AbstractMessage > GeneratedMessage > QueuedResource.Tpu.NodeSpec.MultisliceParamsStatic Fields
NODE_COUNT_FIELD_NUMBER
public static final int NODE_COUNT_FIELD_NUMBER| Field Value | |
|---|---|
| Type | Description |
int |
|
NODE_ID_PREFIX_FIELD_NUMBER
public static final int NODE_ID_PREFIX_FIELD_NUMBER| Field Value | |
|---|---|
| Type | Description |
int |
|
Static Methods
getDefaultInstance()
public static QueuedResource.Tpu.NodeSpec.MultisliceParams getDefaultInstance()| Returns | |
|---|---|
| Type | Description |
QueuedResource.Tpu.NodeSpec.MultisliceParams |
|
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()| Returns | |
|---|---|
| Type | Description |
Descriptor |
|
newBuilder()
public static QueuedResource.Tpu.NodeSpec.MultisliceParams.Builder newBuilder()| Returns | |
|---|---|
| Type | Description |
QueuedResource.Tpu.NodeSpec.MultisliceParams.Builder |
|
newBuilder(QueuedResource.Tpu.NodeSpec.MultisliceParams prototype)
public static QueuedResource.Tpu.NodeSpec.MultisliceParams.Builder newBuilder(QueuedResource.Tpu.NodeSpec.MultisliceParams prototype)| Parameter | |
|---|---|
| Name | Description |
prototype |
QueuedResource.Tpu.NodeSpec.MultisliceParams |
| Returns | |
|---|---|
| Type | Description |
QueuedResource.Tpu.NodeSpec.MultisliceParams.Builder |
|
parseDelimitedFrom(InputStream input)
public static QueuedResource.Tpu.NodeSpec.MultisliceParams parseDelimitedFrom(InputStream input)| Parameter | |
|---|---|
| Name | Description |
input |
InputStream |
| Returns | |
|---|---|
| Type | Description |
QueuedResource.Tpu.NodeSpec.MultisliceParams |
|
| Exceptions | |
|---|---|
| Type | Description |
IOException |
|
parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
public static QueuedResource.Tpu.NodeSpec.MultisliceParams parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)| Parameters | |
|---|---|
| Name | Description |
input |
InputStream |
extensionRegistry |
ExtensionRegistryLite |
| Returns | |
|---|---|
| Type | Description |
QueuedResource.Tpu.NodeSpec.MultisliceParams |
|
| Exceptions | |
|---|---|
| Type | Description |
IOException |
|
parseFrom(byte[] data)
public static QueuedResource.Tpu.NodeSpec.MultisliceParams parseFrom(byte[] data)| Parameter | |
|---|---|
| Name | Description |
data |
byte[] |
| Returns | |
|---|---|
| Type | Description |
QueuedResource.Tpu.NodeSpec.MultisliceParams |
|
| Exceptions | |
|---|---|
| Type | Description |
InvalidProtocolBufferException |
|
parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
public static QueuedResource.Tpu.NodeSpec.MultisliceParams parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)| Parameters | |
|---|---|
| Name | Description |
data |
byte[] |
extensionRegistry |
ExtensionRegistryLite |
| Returns | |
|---|---|
| Type | Description |
QueuedResource.Tpu.NodeSpec.MultisliceParams |
|
| Exceptions | |
|---|---|
| Type | Description |
InvalidProtocolBufferException |
|
parseFrom(ByteString data)
public static QueuedResource.Tpu.NodeSpec.MultisliceParams parseFrom(ByteString data)| Parameter | |
|---|---|
| Name | Description |
data |
ByteString |
| Returns | |
|---|---|
| Type | Description |
QueuedResource.Tpu.NodeSpec.MultisliceParams |
|
| Exceptions | |
|---|---|
| Type | Description |
InvalidProtocolBufferException |
|
parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
public static QueuedResource.Tpu.NodeSpec.MultisliceParams parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)| Parameters | |
|---|---|
| Name | Description |
data |
ByteString |
extensionRegistry |
ExtensionRegistryLite |
| Returns | |
|---|---|
| Type | Description |
QueuedResource.Tpu.NodeSpec.MultisliceParams |
|
| Exceptions | |
|---|---|
| Type | Description |
InvalidProtocolBufferException |
|
parseFrom(CodedInputStream input)
public static QueuedResource.Tpu.NodeSpec.MultisliceParams parseFrom(CodedInputStream input)| Parameter | |
|---|---|
| Name | Description |
input |
CodedInputStream |
| Returns | |
|---|---|
| Type | Description |
QueuedResource.Tpu.NodeSpec.MultisliceParams |
|
| Exceptions | |
|---|---|
| Type | Description |
IOException |
|
parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
public static QueuedResource.Tpu.NodeSpec.MultisliceParams parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)| Parameters | |
|---|---|
| Name | Description |
input |
CodedInputStream |
extensionRegistry |
ExtensionRegistryLite |
| Returns | |
|---|---|
| Type | Description |
QueuedResource.Tpu.NodeSpec.MultisliceParams |
|
| Exceptions | |
|---|---|
| Type | Description |
IOException |
|
parseFrom(InputStream input)
public static QueuedResource.Tpu.NodeSpec.MultisliceParams parseFrom(InputStream input)| Parameter | |
|---|---|
| Name | Description |
input |
InputStream |
| Returns | |
|---|---|
| Type | Description |
QueuedResource.Tpu.NodeSpec.MultisliceParams |
|
| Exceptions | |
|---|---|
| Type | Description |
IOException |
|
parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
public static QueuedResource.Tpu.NodeSpec.MultisliceParams parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)| Parameters | |
|---|---|
| Name | Description |
input |
InputStream |
extensionRegistry |
ExtensionRegistryLite |
| Returns | |
|---|---|
| Type | Description |
QueuedResource.Tpu.NodeSpec.MultisliceParams |
|
| Exceptions | |
|---|---|
| Type | Description |
IOException |
|
parseFrom(ByteBuffer data)
public static QueuedResource.Tpu.NodeSpec.MultisliceParams parseFrom(ByteBuffer data)| Parameter | |
|---|---|
| Name | Description |
data |
ByteBuffer |
| Returns | |
|---|---|
| Type | Description |
QueuedResource.Tpu.NodeSpec.MultisliceParams |
|
| Exceptions | |
|---|---|
| Type | Description |
InvalidProtocolBufferException |
|
parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
public static QueuedResource.Tpu.NodeSpec.MultisliceParams parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)| Parameters | |
|---|---|
| Name | Description |
data |
ByteBuffer |
extensionRegistry |
ExtensionRegistryLite |
| Returns | |
|---|---|
| Type | Description |
QueuedResource.Tpu.NodeSpec.MultisliceParams |
|
| Exceptions | |
|---|---|
| Type | Description |
InvalidProtocolBufferException |
|
parser()
public static Parser<QueuedResource.Tpu.NodeSpec.MultisliceParams> parser()| Returns | |
|---|---|
| Type | Description |
Parser<MultisliceParams> |
|
Methods
equals(Object obj)
public boolean equals(Object obj)| Parameter | |
|---|---|
| Name | Description |
obj |
Object |
| Returns | |
|---|---|
| Type | Description |
boolean |
|
getDefaultInstanceForType()
public QueuedResource.Tpu.NodeSpec.MultisliceParams getDefaultInstanceForType()| Returns | |
|---|---|
| Type | Description |
QueuedResource.Tpu.NodeSpec.MultisliceParams |
|
getNodeCount()
public int getNodeCount()Required. Number of nodes with this spec. The system will attempt to provision "node_count" nodes as part of the request. This needs to be > 1.
int32 node_count = 1 [(.google.api.field_behavior) = REQUIRED];
| Returns | |
|---|---|
| Type | Description |
int |
The nodeCount. |
getNodeIdPrefix()
public String getNodeIdPrefix() Optional. Prefix of node_ids in case of multislice request.
Should follow the ^[A-Za-z0-9_.~+%-]+$ regex format.
If node_count = 3 and node_id_prefix = "np", node ids of nodes
created will be "np-0", "np-1", "np-2". If this field is not
provided we use queued_resource_id as the node_id_prefix.
string node_id_prefix = 2 [(.google.api.field_behavior) = OPTIONAL];
| Returns | |
|---|---|
| Type | Description |
String |
The nodeIdPrefix. |
getNodeIdPrefixBytes()
public ByteString getNodeIdPrefixBytes() Optional. Prefix of node_ids in case of multislice request.
Should follow the ^[A-Za-z0-9_.~+%-]+$ regex format.
If node_count = 3 and node_id_prefix = "np", node ids of nodes
created will be "np-0", "np-1", "np-2". If this field is not
provided we use queued_resource_id as the node_id_prefix.
string node_id_prefix = 2 [(.google.api.field_behavior) = OPTIONAL];
| Returns | |
|---|---|
| Type | Description |
ByteString |
The bytes for nodeIdPrefix. |
getParserForType()
public Parser<QueuedResource.Tpu.NodeSpec.MultisliceParams> getParserForType()| Returns | |
|---|---|
| Type | Description |
Parser<MultisliceParams> |
|
getSerializedSize()
public int getSerializedSize()| Returns | |
|---|---|
| Type | Description |
int |
|
hashCode()
public int hashCode()| Returns | |
|---|---|
| Type | Description |
int |
|
internalGetFieldAccessorTable()
protected GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()| Returns | |
|---|---|
| Type | Description |
FieldAccessorTable |
|
isInitialized()
public final boolean isInitialized()| Returns | |
|---|---|
| Type | Description |
boolean |
|
newBuilderForType()
public QueuedResource.Tpu.NodeSpec.MultisliceParams.Builder newBuilderForType()| Returns | |
|---|---|
| Type | Description |
QueuedResource.Tpu.NodeSpec.MultisliceParams.Builder |
|
newBuilderForType(AbstractMessage.BuilderParent parent)
protected QueuedResource.Tpu.NodeSpec.MultisliceParams.Builder newBuilderForType(AbstractMessage.BuilderParent parent)| Parameter | |
|---|---|
| Name | Description |
parent |
BuilderParent |
| Returns | |
|---|---|
| Type | Description |
QueuedResource.Tpu.NodeSpec.MultisliceParams.Builder |
|
toBuilder()
public QueuedResource.Tpu.NodeSpec.MultisliceParams.Builder toBuilder()| Returns | |
|---|---|
| Type | Description |
QueuedResource.Tpu.NodeSpec.MultisliceParams.Builder |
|
writeTo(CodedOutputStream output)
public void writeTo(CodedOutputStream output)| Parameter | |
|---|---|
| Name | Description |
output |
CodedOutputStream |
| Exceptions | |
|---|---|
| Type | Description |
IOException |
|