Class GetRegionInstanceTemplateRequest.Builder (1.46.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
TypeDescription
Descriptor

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public GetRegionInstanceTemplateRequest build()
Returns
TypeDescription
GetRegionInstanceTemplateRequest

buildPartial()

public GetRegionInstanceTemplateRequest buildPartial()
Returns
TypeDescription
GetRegionInstanceTemplateRequest

clear()

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

clearField(Descriptors.FieldDescriptor field)

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

clearInstanceTemplate()

public GetRegionInstanceTemplateRequest.Builder clearInstanceTemplate()

The name of the instance template.

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

Returns
TypeDescription
GetRegionInstanceTemplateRequest.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

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

clearProject()

public GetRegionInstanceTemplateRequest.Builder clearProject()

Project ID for this request.

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

Returns
TypeDescription
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
TypeDescription
GetRegionInstanceTemplateRequest.Builder

This builder for chaining.

clone()

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

getDefaultInstanceForType()

public GetRegionInstanceTemplateRequest getDefaultInstanceForType()
Returns
TypeDescription
GetRegionInstanceTemplateRequest

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
Descriptor
Overrides

getInstanceTemplate()

public String getInstanceTemplate()

The name of the instance template.

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

Returns
TypeDescription
String

The instanceTemplate.

getInstanceTemplateBytes()

public ByteString getInstanceTemplateBytes()

The name of the instance template.

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

Returns
TypeDescription
ByteString

The bytes for instanceTemplate.

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(GetRegionInstanceTemplateRequest other)

public GetRegionInstanceTemplateRequest.Builder mergeFrom(GetRegionInstanceTemplateRequest other)
Parameter
NameDescription
otherGetRegionInstanceTemplateRequest
Returns
TypeDescription
GetRegionInstanceTemplateRequest.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

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

setField(Descriptors.FieldDescriptor field, Object value)

public GetRegionInstanceTemplateRequest.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
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
NameDescription
valueString

The instanceTemplate to set.

Returns
TypeDescription
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
NameDescription
valueByteString

The bytes for instanceTemplate to set.

Returns
TypeDescription
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
NameDescription
valueString

The project to set.

Returns
TypeDescription
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
NameDescription
valueByteString

The bytes for project to set.

Returns
TypeDescription
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
NameDescription
valueString

The region to set.

Returns
TypeDescription
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
NameDescription
valueByteString

The bytes for region to set.

Returns
TypeDescription
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
NameDescription
fieldFieldDescriptor
indexint
valueObject
Returns
TypeDescription
GetRegionInstanceTemplateRequest.Builder
Overrides

setUnknownFields(UnknownFieldSet unknownFields)

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