Class GetKeyStringRequest.Builder (0.10.0)

public static final class GetKeyStringRequest.Builder extends GeneratedMessageV3.Builder<GetKeyStringRequest.Builder> implements GetKeyStringRequestOrBuilder

Request message for GetKeyString method.

Protobuf type google.api.apikeys.v2.GetKeyStringRequest

Static Methods

getDescriptor()

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

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public GetKeyStringRequest build()
Returns
TypeDescription
GetKeyStringRequest

buildPartial()

public GetKeyStringRequest buildPartial()
Returns
TypeDescription
GetKeyStringRequest

clear()

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

clearField(Descriptors.FieldDescriptor field)

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

clearName()

public GetKeyStringRequest.Builder clearName()

Required. The resource name of the API key to be retrieved.

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

Returns
TypeDescription
GetKeyStringRequest.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

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

clone()

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

getDefaultInstanceForType()

public GetKeyStringRequest getDefaultInstanceForType()
Returns
TypeDescription
GetKeyStringRequest

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
Descriptor
Overrides

getName()

public String getName()

Required. The resource name of the API key to be retrieved.

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 of the API key to be retrieved.

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

public GetKeyStringRequest.Builder mergeFrom(GetKeyStringRequest other)
Parameter
NameDescription
otherGetKeyStringRequest
Returns
TypeDescription
GetKeyStringRequest.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

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

setField(Descriptors.FieldDescriptor field, Object value)

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

setName(String value)

public GetKeyStringRequest.Builder setName(String value)

Required. The resource name of the API key to be retrieved.

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

Parameter
NameDescription
valueString

The name to set.

Returns
TypeDescription
GetKeyStringRequest.Builder

This builder for chaining.

setNameBytes(ByteString value)

public GetKeyStringRequest.Builder setNameBytes(ByteString value)

Required. The resource name of the API key to be retrieved.

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

Parameter
NameDescription
valueByteString

The bytes for name to set.

Returns
TypeDescription
GetKeyStringRequest.Builder

This builder for chaining.

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

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

setUnknownFields(UnknownFieldSet unknownFields)

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