Class GetInstanceTemplateRequest.Builder (1.43.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
TypeDescription
Descriptor

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public GetInstanceTemplateRequest build()
Returns
TypeDescription
GetInstanceTemplateRequest

buildPartial()

public GetInstanceTemplateRequest buildPartial()
Returns
TypeDescription
GetInstanceTemplateRequest

clear()

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

clearField(Descriptors.FieldDescriptor field)

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

clearInstanceTemplate()

public GetInstanceTemplateRequest.Builder clearInstanceTemplate()

The name of the instance template.

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

Returns
TypeDescription
GetInstanceTemplateRequest.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

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

clearProject()

public GetInstanceTemplateRequest.Builder clearProject()

Project ID for this request.

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

Returns
TypeDescription
GetInstanceTemplateRequest.Builder

This builder for chaining.

clone()

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

getDefaultInstanceForType()

public GetInstanceTemplateRequest getDefaultInstanceForType()
Returns
TypeDescription
GetInstanceTemplateRequest

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.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

mergeFrom(GetInstanceTemplateRequest other)

public GetInstanceTemplateRequest.Builder mergeFrom(GetInstanceTemplateRequest other)
Parameter
NameDescription
otherGetInstanceTemplateRequest
Returns
TypeDescription
GetInstanceTemplateRequest.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

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

setField(Descriptors.FieldDescriptor field, Object value)

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

The instanceTemplate to set.

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

The bytes for instanceTemplate to set.

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

The project to set.

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

The bytes for project to set.

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

setUnknownFields(UnknownFieldSet unknownFields)

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