Class GetLocationRequest.Builder (2.39.0)

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
Type Description
Descriptor

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public GetLocationRequest build()
Returns
Type Description
GetLocationRequest

buildPartial()

public GetLocationRequest buildPartial()
Returns
Type Description
GetLocationRequest

clear()

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

clearField(Descriptors.FieldDescriptor field)

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

clearName()

public GetLocationRequest.Builder clearName()

Resource name for the location.

string name = 1;

Returns
Type Description
GetLocationRequest.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

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

clone()

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

getDefaultInstanceForType()

public GetLocationRequest getDefaultInstanceForType()
Returns
Type Description
GetLocationRequest

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
Type Description
Descriptor
Overrides

getName()

public String getName()

Resource name for the location.

string name = 1;

Returns
Type Description
String

The name.

getNameBytes()

public ByteString getNameBytes()

Resource name for the location.

string name = 1;

Returns
Type Description
ByteString

The bytes for name.

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(GetLocationRequest other)

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

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

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

setField(Descriptors.FieldDescriptor field, Object value)

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

setName(String value)

public GetLocationRequest.Builder setName(String value)

Resource name for the location.

string name = 1;

Parameter
Name Description
value String

The name to set.

Returns
Type Description
GetLocationRequest.Builder

This builder for chaining.

setNameBytes(ByteString value)

public GetLocationRequest.Builder setNameBytes(ByteString value)

Resource name for the location.

string name = 1;

Parameter
Name Description
value ByteString

The bytes for name to set.

Returns
Type Description
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
Name Description
field FieldDescriptor
index int
value Object
Returns
Type Description
GetLocationRequest.Builder
Overrides

setUnknownFields(UnknownFieldSet unknownFields)

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