Class GetLocationRequest.Builder (2.37.1)

public static final class GetLocationRequest.Builder extends GeneratedMessageV3.Builder<GetLocationRequest.Builder> implements GetLocationRequestOrBuilder

The request message for Locations.GetLocation.

Protobuf type google.cloud.location.GetLocationRequest

Static Methods

getDescriptor()

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

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public GetLocationRequest build()
Returns
TypeDescription
GetLocationRequest

buildPartial()

public GetLocationRequest buildPartial()
Returns
TypeDescription
GetLocationRequest

clear()

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

clearField(Descriptors.FieldDescriptor field)

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

clearName()

public GetLocationRequest.Builder clearName()

Resource name for the location.

string name = 1;

Returns
TypeDescription
GetLocationRequest.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

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

clone()

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

getDefaultInstanceForType()

public GetLocationRequest getDefaultInstanceForType()
Returns
TypeDescription
GetLocationRequest

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
Descriptor
Overrides

getName()

public String getName()

Resource name for the location.

string name = 1;

Returns
TypeDescription
String

The name.

getNameBytes()

public ByteString getNameBytes()

Resource name for the location.

string name = 1;

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

public GetLocationRequest.Builder mergeFrom(GetLocationRequest other)
Parameter
NameDescription
otherGetLocationRequest
Returns
TypeDescription
GetLocationRequest.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

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

setField(Descriptors.FieldDescriptor field, Object value)

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

setName(String value)

public GetLocationRequest.Builder setName(String value)

Resource name for the location.

string name = 1;

Parameter
NameDescription
valueString

The name to set.

Returns
TypeDescription
GetLocationRequest.Builder

This builder for chaining.

setNameBytes(ByteString value)

public GetLocationRequest.Builder setNameBytes(ByteString value)

Resource name for the location.

string name = 1;

Parameter
NameDescription
valueByteString

The bytes for name to set.

Returns
TypeDescription
GetLocationRequest.Builder

This builder for chaining.

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

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

setUnknownFields(UnknownFieldSet unknownFields)

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