Class LookupKeyResponse.Builder (0.1.2)

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
TypeDescription
Descriptor

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public LookupKeyResponse build()
Returns
TypeDescription
LookupKeyResponse

buildPartial()

public LookupKeyResponse buildPartial()
Returns
TypeDescription
LookupKeyResponse

clear()

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

clearField(Descriptors.FieldDescriptor field)

public LookupKeyResponse.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
NameDescription
fieldFieldDescriptor
Returns
TypeDescription
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
TypeDescription
LookupKeyResponse.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

public LookupKeyResponse.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
NameDescription
oneofOneofDescriptor
Returns
TypeDescription
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
TypeDescription
LookupKeyResponse.Builder

This builder for chaining.

clone()

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

getDefaultInstanceForType()

public LookupKeyResponse getDefaultInstanceForType()
Returns
TypeDescription
LookupKeyResponse

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
String

The parent.

getParentBytes()

public ByteString getParentBytes()

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

string parent = 1;

Returns
TypeDescription
ByteString

The bytes for parent.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

mergeFrom(LookupKeyResponse other)

public LookupKeyResponse.Builder mergeFrom(LookupKeyResponse other)
Parameter
NameDescription
otherLookupKeyResponse
Returns
TypeDescription
LookupKeyResponse.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

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

setField(Descriptors.FieldDescriptor field, Object value)

public LookupKeyResponse.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
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
NameDescription
valueString

The name to set.

Returns
TypeDescription
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
NameDescription
valueByteString

The bytes for name to set.

Returns
TypeDescription
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
NameDescription
valueString

The parent to set.

Returns
TypeDescription
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
NameDescription
valueByteString

The bytes for parent to set.

Returns
TypeDescription
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
NameDescription
fieldFieldDescriptor
indexint
valueObject
Returns
TypeDescription
LookupKeyResponse.Builder
Overrides

setUnknownFields(UnknownFieldSet unknownFields)

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