Class LookupKeyResponse.Builder (0.43.0)

public static final class LookupKeyResponse.Builder extends GeneratedMessageV3.Builder<LookupKeyResponse.Builder> implements LookupKeyResponseOrBuilder

Response message for LookupKey method.

Protobuf type google.api.apikeys.v2.LookupKeyResponse

Static Methods

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
Type Description
Descriptor

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public LookupKeyResponse build()
Returns
Type Description
LookupKeyResponse

buildPartial()

public LookupKeyResponse buildPartial()
Returns
Type Description
LookupKeyResponse

clear()

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

clearField(Descriptors.FieldDescriptor field)

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

clearName()

public LookupKeyResponse.Builder clearName()

The resource name of the API key. If the API key has been purged, resource name is empty.

string name = 2;

Returns
Type Description
LookupKeyResponse.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

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

clearParent()

public LookupKeyResponse.Builder clearParent()

The project that owns the key with the value specified in the request.

string parent = 1;

Returns
Type Description
LookupKeyResponse.Builder

This builder for chaining.

clone()

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

getDefaultInstanceForType()

public LookupKeyResponse getDefaultInstanceForType()
Returns
Type Description
LookupKeyResponse

getDescriptorForType()

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

getName()

public String getName()

The resource name of the API key. If the API key has been purged, resource name is empty.

string name = 2;

Returns
Type Description
String

The name.

getNameBytes()

public ByteString getNameBytes()

The resource name of the API key. If the API key has been purged, resource name is empty.

string name = 2;

Returns
Type Description
ByteString

The bytes for name.

getParent()

public String getParent()

The project that owns the key with the value specified in the request.

string parent = 1;

Returns
Type Description
String

The parent.

getParentBytes()

public ByteString getParentBytes()

The project that owns the key with the value specified in the request.

string parent = 1;

Returns
Type Description
ByteString

The bytes for parent.

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(LookupKeyResponse other)

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

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

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

setField(Descriptors.FieldDescriptor field, Object value)

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

setName(String value)

public LookupKeyResponse.Builder setName(String value)

The resource name of the API key. If the API key has been purged, resource name is empty.

string name = 2;

Parameter
Name Description
value String

The name to set.

Returns
Type Description
LookupKeyResponse.Builder

This builder for chaining.

setNameBytes(ByteString value)

public LookupKeyResponse.Builder setNameBytes(ByteString value)

The resource name of the API key. If the API key has been purged, resource name is empty.

string name = 2;

Parameter
Name Description
value ByteString

The bytes for name to set.

Returns
Type Description
LookupKeyResponse.Builder

This builder for chaining.

setParent(String value)

public LookupKeyResponse.Builder setParent(String value)

The project that owns the key with the value specified in the request.

string parent = 1;

Parameter
Name Description
value String

The parent to set.

Returns
Type Description
LookupKeyResponse.Builder

This builder for chaining.

setParentBytes(ByteString value)

public LookupKeyResponse.Builder setParentBytes(ByteString value)

The project that owns the key with the value specified in the request.

string parent = 1;

Parameter
Name Description
value ByteString

The bytes for parent to set.

Returns
Type Description
LookupKeyResponse.Builder

This builder for chaining.

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

public LookupKeyResponse.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
Name Description
field FieldDescriptor
index int
value Object
Returns
Type Description
LookupKeyResponse.Builder
Overrides

setUnknownFields(UnknownFieldSet unknownFields)

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