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
Methods
addRepeatedField(Descriptors.FieldDescriptor field, Object value)
public GetInstanceTemplateRequest.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
Returns
Overrides
build()
public GetInstanceTemplateRequest build()
Returns
buildPartial()
public GetInstanceTemplateRequest buildPartial()
Returns
clear()
public GetInstanceTemplateRequest.Builder clear()
Returns
Overrides
clearField(Descriptors.FieldDescriptor field)
public GetInstanceTemplateRequest.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
Returns
Overrides
clearInstanceTemplate()
public GetInstanceTemplateRequest.Builder clearInstanceTemplate()
The name of the instance template.
string instance_template = 309248228 [(.google.api.field_behavior) = REQUIRED];
Returns
clearOneof(Descriptors.OneofDescriptor oneof)
public GetInstanceTemplateRequest.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
Returns
Overrides
clearProject()
public GetInstanceTemplateRequest.Builder clearProject()
Project ID for this request.
string project = 227560217 [(.google.api.field_behavior) = REQUIRED];
Returns
clone()
public GetInstanceTemplateRequest.Builder clone()
Returns
Overrides
getDefaultInstanceForType()
public GetInstanceTemplateRequest getDefaultInstanceForType()
Returns
getDescriptorForType()
public Descriptors.Descriptor getDescriptorForType()
Returns
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
internalGetFieldAccessorTable()
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
Overrides
isInitialized()
public final boolean isInitialized()
Returns
Overrides
mergeFrom(GetInstanceTemplateRequest other)
public GetInstanceTemplateRequest.Builder mergeFrom(GetInstanceTemplateRequest other)
Parameter
Returns
public GetInstanceTemplateRequest.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Overrides
Exceptions
mergeFrom(Message other)
public GetInstanceTemplateRequest.Builder mergeFrom(Message other)
Parameter
Returns
Overrides
mergeUnknownFields(UnknownFieldSet unknownFields)
public final GetInstanceTemplateRequest.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
Returns
Overrides
setField(Descriptors.FieldDescriptor field, Object value)
public GetInstanceTemplateRequest.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
Returns
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
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
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
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
setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
public GetInstanceTemplateRequest.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
Returns
Overrides
setUnknownFields(UnknownFieldSet unknownFields)
public final GetInstanceTemplateRequest.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
Returns
Overrides