Class GetNodeTemplateRequest.Builder (1.21.0)

public static final class GetNodeTemplateRequest.Builder extends GeneratedMessageV3.Builder<GetNodeTemplateRequest.Builder> implements GetNodeTemplateRequestOrBuilder

A request message for NodeTemplates.Get. See the method description for details.

Protobuf type google.cloud.compute.v1.GetNodeTemplateRequest

Static Methods

getDescriptor()

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

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public GetNodeTemplateRequest.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
GetNodeTemplateRequest.Builder
Overrides

build()

public GetNodeTemplateRequest build()
Returns
TypeDescription
GetNodeTemplateRequest

buildPartial()

public GetNodeTemplateRequest buildPartial()
Returns
TypeDescription
GetNodeTemplateRequest

clear()

public GetNodeTemplateRequest.Builder clear()
Returns
TypeDescription
GetNodeTemplateRequest.Builder
Overrides

clearField(Descriptors.FieldDescriptor field)

public GetNodeTemplateRequest.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
NameDescription
fieldFieldDescriptor
Returns
TypeDescription
GetNodeTemplateRequest.Builder
Overrides

clearNodeTemplate()

public GetNodeTemplateRequest.Builder clearNodeTemplate()

Name of the node template to return.

string node_template = 323154455 [(.google.api.field_behavior) = REQUIRED];

Returns
TypeDescription
GetNodeTemplateRequest.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

public GetNodeTemplateRequest.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
NameDescription
oneofOneofDescriptor
Returns
TypeDescription
GetNodeTemplateRequest.Builder
Overrides

clearProject()

public GetNodeTemplateRequest.Builder clearProject()

Project ID for this request.

string project = 227560217 [(.google.api.field_behavior) = REQUIRED];

Returns
TypeDescription
GetNodeTemplateRequest.Builder

This builder for chaining.

clearRegion()

public GetNodeTemplateRequest.Builder clearRegion()

The name of the region for this request.

string region = 138946292 [(.google.api.field_behavior) = REQUIRED];

Returns
TypeDescription
GetNodeTemplateRequest.Builder

This builder for chaining.

clone()

public GetNodeTemplateRequest.Builder clone()
Returns
TypeDescription
GetNodeTemplateRequest.Builder
Overrides

getDefaultInstanceForType()

public GetNodeTemplateRequest getDefaultInstanceForType()
Returns
TypeDescription
GetNodeTemplateRequest

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
Descriptor
Overrides

getNodeTemplate()

public String getNodeTemplate()

Name of the node template to return.

string node_template = 323154455 [(.google.api.field_behavior) = REQUIRED];

Returns
TypeDescription
String

The nodeTemplate.

getNodeTemplateBytes()

public ByteString getNodeTemplateBytes()

Name of the node template to return.

string node_template = 323154455 [(.google.api.field_behavior) = REQUIRED];

Returns
TypeDescription
ByteString

The bytes for nodeTemplate.

getProject()

public String getProject()

Project ID for this request.

string project = 227560217 [(.google.api.field_behavior) = REQUIRED];

Returns
TypeDescription
String

The project.

getProjectBytes()

public ByteString getProjectBytes()

Project ID for this request.

string project = 227560217 [(.google.api.field_behavior) = REQUIRED];

Returns
TypeDescription
ByteString

The bytes for project.

getRegion()

public String getRegion()

The name of the region for this request.

string region = 138946292 [(.google.api.field_behavior) = REQUIRED];

Returns
TypeDescription
String

The region.

getRegionBytes()

public ByteString getRegionBytes()

The name of the region for this request.

string region = 138946292 [(.google.api.field_behavior) = REQUIRED];

Returns
TypeDescription
ByteString

The bytes for region.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

mergeFrom(GetNodeTemplateRequest other)

public GetNodeTemplateRequest.Builder mergeFrom(GetNodeTemplateRequest other)
Parameter
NameDescription
otherGetNodeTemplateRequest
Returns
TypeDescription
GetNodeTemplateRequest.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public GetNodeTemplateRequest.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputCodedInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
GetNodeTemplateRequest.Builder
Overrides Exceptions
TypeDescription
IOException

mergeFrom(Message other)

public GetNodeTemplateRequest.Builder mergeFrom(Message other)
Parameter
NameDescription
otherMessage
Returns
TypeDescription
GetNodeTemplateRequest.Builder
Overrides

mergeUnknownFields(UnknownFieldSet unknownFields)

public final GetNodeTemplateRequest.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
GetNodeTemplateRequest.Builder
Overrides

setField(Descriptors.FieldDescriptor field, Object value)

public GetNodeTemplateRequest.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
GetNodeTemplateRequest.Builder
Overrides

setNodeTemplate(String value)

public GetNodeTemplateRequest.Builder setNodeTemplate(String value)

Name of the node template to return.

string node_template = 323154455 [(.google.api.field_behavior) = REQUIRED];

Parameter
NameDescription
valueString

The nodeTemplate to set.

Returns
TypeDescription
GetNodeTemplateRequest.Builder

This builder for chaining.

setNodeTemplateBytes(ByteString value)

public GetNodeTemplateRequest.Builder setNodeTemplateBytes(ByteString value)

Name of the node template to return.

string node_template = 323154455 [(.google.api.field_behavior) = REQUIRED];

Parameter
NameDescription
valueByteString

The bytes for nodeTemplate to set.

Returns
TypeDescription
GetNodeTemplateRequest.Builder

This builder for chaining.

setProject(String value)

public GetNodeTemplateRequest.Builder setProject(String value)

Project ID for this request.

string project = 227560217 [(.google.api.field_behavior) = REQUIRED];

Parameter
NameDescription
valueString

The project to set.

Returns
TypeDescription
GetNodeTemplateRequest.Builder

This builder for chaining.

setProjectBytes(ByteString value)

public GetNodeTemplateRequest.Builder setProjectBytes(ByteString value)

Project ID for this request.

string project = 227560217 [(.google.api.field_behavior) = REQUIRED];

Parameter
NameDescription
valueByteString

The bytes for project to set.

Returns
TypeDescription
GetNodeTemplateRequest.Builder

This builder for chaining.

setRegion(String value)

public GetNodeTemplateRequest.Builder setRegion(String value)

The name of the region for this request.

string region = 138946292 [(.google.api.field_behavior) = REQUIRED];

Parameter
NameDescription
valueString

The region to set.

Returns
TypeDescription
GetNodeTemplateRequest.Builder

This builder for chaining.

setRegionBytes(ByteString value)

public GetNodeTemplateRequest.Builder setRegionBytes(ByteString value)

The name of the region for this request.

string region = 138946292 [(.google.api.field_behavior) = REQUIRED];

Parameter
NameDescription
valueByteString

The bytes for region to set.

Returns
TypeDescription
GetNodeTemplateRequest.Builder

This builder for chaining.

setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)

public GetNodeTemplateRequest.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
NameDescription
fieldFieldDescriptor
indexint
valueObject
Returns
TypeDescription
GetNodeTemplateRequest.Builder
Overrides

setUnknownFields(UnknownFieldSet unknownFields)

public final GetNodeTemplateRequest.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
GetNodeTemplateRequest.Builder
Overrides