Class LookupKeyResponse.Builder (0.81.0)

public static final class LookupKeyResponse.Builder extends GeneratedMessage.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

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

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.

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.

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 GeneratedMessage.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

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.