Class CreateNodeRequest (2.23.0)

public final class CreateNodeRequest extends GeneratedMessageV3 implements CreateNodeRequestOrBuilder

Request for CreateNode.

Protobuf type google.cloud.tpu.v1.CreateNodeRequest

Static Fields

NODE_FIELD_NUMBER

public static final int NODE_FIELD_NUMBER
Field Value
TypeDescription
int

NODE_ID_FIELD_NUMBER

public static final int NODE_ID_FIELD_NUMBER
Field Value
TypeDescription
int

PARENT_FIELD_NUMBER

public static final int PARENT_FIELD_NUMBER
Field Value
TypeDescription
int

Static Methods

getDefaultInstance()

public static CreateNodeRequest getDefaultInstance()
Returns
TypeDescription
CreateNodeRequest

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
TypeDescription
Descriptor

newBuilder()

public static CreateNodeRequest.Builder newBuilder()
Returns
TypeDescription
CreateNodeRequest.Builder

newBuilder(CreateNodeRequest prototype)

public static CreateNodeRequest.Builder newBuilder(CreateNodeRequest prototype)
Parameter
NameDescription
prototypeCreateNodeRequest
Returns
TypeDescription
CreateNodeRequest.Builder

parseDelimitedFrom(InputStream input)

public static CreateNodeRequest parseDelimitedFrom(InputStream input)
Parameter
NameDescription
inputInputStream
Returns
TypeDescription
CreateNodeRequest
Exceptions
TypeDescription
IOException

parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static CreateNodeRequest parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
CreateNodeRequest
Exceptions
TypeDescription
IOException

parseFrom(byte[] data)

public static CreateNodeRequest parseFrom(byte[] data)
Parameter
NameDescription
databyte[]
Returns
TypeDescription
CreateNodeRequest
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)

public static CreateNodeRequest parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
databyte[]
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
CreateNodeRequest
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(ByteString data)

public static CreateNodeRequest parseFrom(ByteString data)
Parameter
NameDescription
dataByteString
Returns
TypeDescription
CreateNodeRequest
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)

public static CreateNodeRequest parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
dataByteString
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
CreateNodeRequest
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(CodedInputStream input)

public static CreateNodeRequest parseFrom(CodedInputStream input)
Parameter
NameDescription
inputCodedInputStream
Returns
TypeDescription
CreateNodeRequest
Exceptions
TypeDescription
IOException

parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public static CreateNodeRequest parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputCodedInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
CreateNodeRequest
Exceptions
TypeDescription
IOException

parseFrom(InputStream input)

public static CreateNodeRequest parseFrom(InputStream input)
Parameter
NameDescription
inputInputStream
Returns
TypeDescription
CreateNodeRequest
Exceptions
TypeDescription
IOException

parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static CreateNodeRequest parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
CreateNodeRequest
Exceptions
TypeDescription
IOException

parseFrom(ByteBuffer data)

public static CreateNodeRequest parseFrom(ByteBuffer data)
Parameter
NameDescription
dataByteBuffer
Returns
TypeDescription
CreateNodeRequest
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)

public static CreateNodeRequest parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
dataByteBuffer
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
CreateNodeRequest
Exceptions
TypeDescription
InvalidProtocolBufferException

parser()

public static Parser<CreateNodeRequest> parser()
Returns
TypeDescription
Parser<CreateNodeRequest>

Methods

equals(Object obj)

public boolean equals(Object obj)
Parameter
NameDescription
objObject
Returns
TypeDescription
boolean
Overrides

getDefaultInstanceForType()

public CreateNodeRequest getDefaultInstanceForType()
Returns
TypeDescription
CreateNodeRequest

getNode()

public Node getNode()

Required. The node.

.google.cloud.tpu.v1.Node node = 3 [(.google.api.field_behavior) = REQUIRED];

Returns
TypeDescription
Node

The node.

getNodeId()

public String getNodeId()

The unqualified resource name.

string node_id = 2;

Returns
TypeDescription
String

The nodeId.

getNodeIdBytes()

public ByteString getNodeIdBytes()

The unqualified resource name.

string node_id = 2;

Returns
TypeDescription
ByteString

The bytes for nodeId.

getNodeOrBuilder()

public NodeOrBuilder getNodeOrBuilder()

Required. The node.

.google.cloud.tpu.v1.Node node = 3 [(.google.api.field_behavior) = REQUIRED];

Returns
TypeDescription
NodeOrBuilder

getParent()

public String getParent()

Required. The parent resource name.

string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }

Returns
TypeDescription
String

The parent.

getParentBytes()

public ByteString getParentBytes()

Required. The parent resource name.

string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }

Returns
TypeDescription
ByteString

The bytes for parent.

getParserForType()

public Parser<CreateNodeRequest> getParserForType()
Returns
TypeDescription
Parser<CreateNodeRequest>
Overrides

getSerializedSize()

public int getSerializedSize()
Returns
TypeDescription
int
Overrides

hasNode()

public boolean hasNode()

Required. The node.

.google.cloud.tpu.v1.Node node = 3 [(.google.api.field_behavior) = REQUIRED];

Returns
TypeDescription
boolean

Whether the node field is set.

hashCode()

public int hashCode()
Returns
TypeDescription
int
Overrides

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

newBuilderForType()

public CreateNodeRequest.Builder newBuilderForType()
Returns
TypeDescription
CreateNodeRequest.Builder

newBuilderForType(GeneratedMessageV3.BuilderParent parent)

protected CreateNodeRequest.Builder newBuilderForType(GeneratedMessageV3.BuilderParent parent)
Parameter
NameDescription
parentBuilderParent
Returns
TypeDescription
CreateNodeRequest.Builder
Overrides

newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)

protected Object newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
Parameter
NameDescription
unusedUnusedPrivateParameter
Returns
TypeDescription
Object
Overrides

toBuilder()

public CreateNodeRequest.Builder toBuilder()
Returns
TypeDescription
CreateNodeRequest.Builder

writeTo(CodedOutputStream output)

public void writeTo(CodedOutputStream output)
Parameter
NameDescription
outputCodedOutputStream
Overrides
Exceptions
TypeDescription
IOException