Class GetInstanceTemplateRequest.Builder (1.52.0)

public static final class GetInstanceTemplateRequest.Builder extends GeneratedMessageV3.Builder<GetInstanceTemplateRequest.Builder> implements GetInstanceTemplateRequestOrBuilder

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

Protobuf type google.cloud.compute.v1.GetInstanceTemplateRequest

Static Methods

getDescriptor()

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

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public GetInstanceTemplateRequest build()
Returns
Type Description
GetInstanceTemplateRequest

buildPartial()

public GetInstanceTemplateRequest buildPartial()
Returns
Type Description
GetInstanceTemplateRequest

clear()

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

clearField(Descriptors.FieldDescriptor field)

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

clearInstanceTemplate()

public GetInstanceTemplateRequest.Builder clearInstanceTemplate()

The name of the instance template.

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

Returns
Type Description
GetInstanceTemplateRequest.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

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

clearProject()

public GetInstanceTemplateRequest.Builder clearProject()

Project ID for this request.

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

Returns
Type Description
GetInstanceTemplateRequest.Builder

This builder for chaining.

clone()

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

getDefaultInstanceForType()

public GetInstanceTemplateRequest getDefaultInstanceForType()
Returns
Type Description
GetInstanceTemplateRequest

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.

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(GetInstanceTemplateRequest other)

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

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

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

setField(Descriptors.FieldDescriptor field, Object value)

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

setInstanceTemplate(String value)

public GetInstanceTemplateRequest.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
GetInstanceTemplateRequest.Builder

This builder for chaining.

setInstanceTemplateBytes(ByteString value)

public GetInstanceTemplateRequest.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
GetInstanceTemplateRequest.Builder

This builder for chaining.

setProject(String value)

public GetInstanceTemplateRequest.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
GetInstanceTemplateRequest.Builder

This builder for chaining.

setProjectBytes(ByteString value)

public GetInstanceTemplateRequest.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
GetInstanceTemplateRequest.Builder

This builder for chaining.

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

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

setUnknownFields(UnknownFieldSet unknownFields)

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