Class GetRegionInstanceTemplateRequest.Builder (1.55.0)

public static final class GetRegionInstanceTemplateRequest.Builder extends GeneratedMessageV3.Builder<GetRegionInstanceTemplateRequest.Builder> implements GetRegionInstanceTemplateRequestOrBuilder

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

Protobuf type google.cloud.compute.v1.GetRegionInstanceTemplateRequest

Static Methods

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
Type Description
Descriptor

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public GetRegionInstanceTemplateRequest.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
GetRegionInstanceTemplateRequest.Builder
Overrides

build()

public GetRegionInstanceTemplateRequest build()
Returns
Type Description
GetRegionInstanceTemplateRequest

buildPartial()

public GetRegionInstanceTemplateRequest buildPartial()
Returns
Type Description
GetRegionInstanceTemplateRequest

clear()

public GetRegionInstanceTemplateRequest.Builder clear()
Returns
Type Description
GetRegionInstanceTemplateRequest.Builder
Overrides

clearField(Descriptors.FieldDescriptor field)

public GetRegionInstanceTemplateRequest.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
Name Description
field FieldDescriptor
Returns
Type Description
GetRegionInstanceTemplateRequest.Builder
Overrides

clearInstanceTemplate()

public GetRegionInstanceTemplateRequest.Builder clearInstanceTemplate()

The name of the instance template.

string instance_template = 309248228 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
GetRegionInstanceTemplateRequest.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

public GetRegionInstanceTemplateRequest.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
Name Description
oneof OneofDescriptor
Returns
Type Description
GetRegionInstanceTemplateRequest.Builder
Overrides

clearProject()

public GetRegionInstanceTemplateRequest.Builder clearProject()

Project ID for this request.

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

Returns
Type Description
GetRegionInstanceTemplateRequest.Builder

This builder for chaining.

clearRegion()

public GetRegionInstanceTemplateRequest.Builder clearRegion()

The name of the region for this request.

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

Returns
Type Description
GetRegionInstanceTemplateRequest.Builder

This builder for chaining.

clone()

public GetRegionInstanceTemplateRequest.Builder clone()
Returns
Type Description
GetRegionInstanceTemplateRequest.Builder
Overrides

getDefaultInstanceForType()

public GetRegionInstanceTemplateRequest getDefaultInstanceForType()
Returns
Type Description
GetRegionInstanceTemplateRequest

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
Type Description
Descriptor
Overrides

getInstanceTemplate()

public String getInstanceTemplate()

The name of the instance template.

string instance_template = 309248228 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
String

The instanceTemplate.

getInstanceTemplateBytes()

public ByteString getInstanceTemplateBytes()

The name of the instance template.

string instance_template = 309248228 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
ByteString

The bytes for instanceTemplate.

getProject()

public String getProject()

Project ID for this request.

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

Returns
Type Description
String

The project.

getProjectBytes()

public ByteString getProjectBytes()

Project ID for this request.

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

Returns
Type Description
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
Type Description
String

The region.

getRegionBytes()

public ByteString getRegionBytes()

The name of the region for this request.

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

Returns
Type Description
ByteString

The bytes for region.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
Type Description
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(GetRegionInstanceTemplateRequest other)

public GetRegionInstanceTemplateRequest.Builder mergeFrom(GetRegionInstanceTemplateRequest other)
Parameter
Name Description
other GetRegionInstanceTemplateRequest
Returns
Type Description
GetRegionInstanceTemplateRequest.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public GetRegionInstanceTemplateRequest.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input CodedInputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
GetRegionInstanceTemplateRequest.Builder
Overrides
Exceptions
Type Description
IOException

mergeFrom(Message other)

public GetRegionInstanceTemplateRequest.Builder mergeFrom(Message other)
Parameter
Name Description
other Message
Returns
Type Description
GetRegionInstanceTemplateRequest.Builder
Overrides

mergeUnknownFields(UnknownFieldSet unknownFields)

public final GetRegionInstanceTemplateRequest.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
GetRegionInstanceTemplateRequest.Builder
Overrides

setField(Descriptors.FieldDescriptor field, Object value)

public GetRegionInstanceTemplateRequest.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
GetRegionInstanceTemplateRequest.Builder
Overrides

setInstanceTemplate(String value)

public GetRegionInstanceTemplateRequest.Builder setInstanceTemplate(String value)

The name of the instance template.

string instance_template = 309248228 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
value String

The instanceTemplate to set.

Returns
Type Description
GetRegionInstanceTemplateRequest.Builder

This builder for chaining.

setInstanceTemplateBytes(ByteString value)

public GetRegionInstanceTemplateRequest.Builder setInstanceTemplateBytes(ByteString value)

The name of the instance template.

string instance_template = 309248228 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
value ByteString

The bytes for instanceTemplate to set.

Returns
Type Description
GetRegionInstanceTemplateRequest.Builder

This builder for chaining.

setProject(String value)

public GetRegionInstanceTemplateRequest.Builder setProject(String value)

Project ID for this request.

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

Parameter
Name Description
value String

The project to set.

Returns
Type Description
GetRegionInstanceTemplateRequest.Builder

This builder for chaining.

setProjectBytes(ByteString value)

public GetRegionInstanceTemplateRequest.Builder setProjectBytes(ByteString value)

Project ID for this request.

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

Parameter
Name Description
value ByteString

The bytes for project to set.

Returns
Type Description
GetRegionInstanceTemplateRequest.Builder

This builder for chaining.

setRegion(String value)

public GetRegionInstanceTemplateRequest.Builder setRegion(String value)

The name of the region for this request.

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

Parameter
Name Description
value String

The region to set.

Returns
Type Description
GetRegionInstanceTemplateRequest.Builder

This builder for chaining.

setRegionBytes(ByteString value)

public GetRegionInstanceTemplateRequest.Builder setRegionBytes(ByteString value)

The name of the region for this request.

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

Parameter
Name Description
value ByteString

The bytes for region to set.

Returns
Type Description
GetRegionInstanceTemplateRequest.Builder

This builder for chaining.

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

public GetRegionInstanceTemplateRequest.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
Name Description
field FieldDescriptor
index int
value Object
Returns
Type Description
GetRegionInstanceTemplateRequest.Builder
Overrides

setUnknownFields(UnknownFieldSet unknownFields)

public final GetRegionInstanceTemplateRequest.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
GetRegionInstanceTemplateRequest.Builder
Overrides