Class GetAcceleratorTypeRequest.Builder (2.9.0)

public static final class GetAcceleratorTypeRequest.Builder extends GeneratedMessageV3.Builder<GetAcceleratorTypeRequest.Builder> implements GetAcceleratorTypeRequestOrBuilder

Request for GetAcceleratorType.

Protobuf type google.cloud.tpu.v1.GetAcceleratorTypeRequest

Static Methods

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
TypeDescription
Descriptor

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public GetAcceleratorTypeRequest build()
Returns
TypeDescription
GetAcceleratorTypeRequest

buildPartial()

public GetAcceleratorTypeRequest buildPartial()
Returns
TypeDescription
GetAcceleratorTypeRequest

clear()

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

clearField(Descriptors.FieldDescriptor field)

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

clearName()

public GetAcceleratorTypeRequest.Builder clearName()

Required. The resource name.

string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }

Returns
TypeDescription
GetAcceleratorTypeRequest.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

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

clone()

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

getDefaultInstanceForType()

public GetAcceleratorTypeRequest getDefaultInstanceForType()
Returns
TypeDescription
GetAcceleratorTypeRequest

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
Descriptor
Overrides

getName()

public String getName()

Required. The resource name.

string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }

Returns
TypeDescription
String

The name.

getNameBytes()

public ByteString getNameBytes()

Required. The resource name.

string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }

Returns
TypeDescription
ByteString

The bytes for name.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

mergeFrom(GetAcceleratorTypeRequest other)

public GetAcceleratorTypeRequest.Builder mergeFrom(GetAcceleratorTypeRequest other)
Parameter
NameDescription
otherGetAcceleratorTypeRequest
Returns
TypeDescription
GetAcceleratorTypeRequest.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

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

setField(Descriptors.FieldDescriptor field, Object value)

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

setName(String value)

public GetAcceleratorTypeRequest.Builder setName(String value)

Required. The resource name.

string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }

Parameter
NameDescription
valueString

The name to set.

Returns
TypeDescription
GetAcceleratorTypeRequest.Builder

This builder for chaining.

setNameBytes(ByteString value)

public GetAcceleratorTypeRequest.Builder setNameBytes(ByteString value)

Required. The resource name.

string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }

Parameter
NameDescription
valueByteString

The bytes for name to set.

Returns
TypeDescription
GetAcceleratorTypeRequest.Builder

This builder for chaining.

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

public GetAcceleratorTypeRequest.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
NameDescription
fieldFieldDescriptor
indexint
valueObject
Returns
TypeDescription
GetAcceleratorTypeRequest.Builder
Overrides

setUnknownFields(UnknownFieldSet unknownFields)

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