Class GetServiceIdentityResponse (2.21.0)

public final class GetServiceIdentityResponse extends GeneratedMessageV3 implements GetServiceIdentityResponseOrBuilder

Response message for getting service identity.

Protobuf type google.api.serviceusage.v1beta1.GetServiceIdentityResponse

Static Fields

IDENTITY_FIELD_NUMBER

public static final int IDENTITY_FIELD_NUMBER
Field Value
TypeDescription
int

STATE_FIELD_NUMBER

public static final int STATE_FIELD_NUMBER
Field Value
TypeDescription
int

Static Methods

getDefaultInstance()

public static GetServiceIdentityResponse getDefaultInstance()
Returns
TypeDescription
GetServiceIdentityResponse

getDescriptor()

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

newBuilder()

public static GetServiceIdentityResponse.Builder newBuilder()
Returns
TypeDescription
GetServiceIdentityResponse.Builder

newBuilder(GetServiceIdentityResponse prototype)

public static GetServiceIdentityResponse.Builder newBuilder(GetServiceIdentityResponse prototype)
Parameter
NameDescription
prototypeGetServiceIdentityResponse
Returns
TypeDescription
GetServiceIdentityResponse.Builder

parseDelimitedFrom(InputStream input)

public static GetServiceIdentityResponse parseDelimitedFrom(InputStream input)
Parameter
NameDescription
inputInputStream
Returns
TypeDescription
GetServiceIdentityResponse
Exceptions
TypeDescription
IOException

parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static GetServiceIdentityResponse parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
GetServiceIdentityResponse
Exceptions
TypeDescription
IOException

parseFrom(byte[] data)

public static GetServiceIdentityResponse parseFrom(byte[] data)
Parameter
NameDescription
databyte[]
Returns
TypeDescription
GetServiceIdentityResponse
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)

public static GetServiceIdentityResponse parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
databyte[]
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
GetServiceIdentityResponse
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(ByteString data)

public static GetServiceIdentityResponse parseFrom(ByteString data)
Parameter
NameDescription
dataByteString
Returns
TypeDescription
GetServiceIdentityResponse
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)

public static GetServiceIdentityResponse parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
dataByteString
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
GetServiceIdentityResponse
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(CodedInputStream input)

public static GetServiceIdentityResponse parseFrom(CodedInputStream input)
Parameter
NameDescription
inputCodedInputStream
Returns
TypeDescription
GetServiceIdentityResponse
Exceptions
TypeDescription
IOException

parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public static GetServiceIdentityResponse parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputCodedInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
GetServiceIdentityResponse
Exceptions
TypeDescription
IOException

parseFrom(InputStream input)

public static GetServiceIdentityResponse parseFrom(InputStream input)
Parameter
NameDescription
inputInputStream
Returns
TypeDescription
GetServiceIdentityResponse
Exceptions
TypeDescription
IOException

parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static GetServiceIdentityResponse parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
GetServiceIdentityResponse
Exceptions
TypeDescription
IOException

parseFrom(ByteBuffer data)

public static GetServiceIdentityResponse parseFrom(ByteBuffer data)
Parameter
NameDescription
dataByteBuffer
Returns
TypeDescription
GetServiceIdentityResponse
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)

public static GetServiceIdentityResponse parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
dataByteBuffer
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
GetServiceIdentityResponse
Exceptions
TypeDescription
InvalidProtocolBufferException

parser()

public static Parser<GetServiceIdentityResponse> parser()
Returns
TypeDescription
Parser<GetServiceIdentityResponse>

Methods

equals(Object obj)

public boolean equals(Object obj)
Parameter
NameDescription
objObject
Returns
TypeDescription
boolean
Overrides

getDefaultInstanceForType()

public GetServiceIdentityResponse getDefaultInstanceForType()
Returns
TypeDescription
GetServiceIdentityResponse

getIdentity()

public ServiceIdentity getIdentity()

Service identity that service producer can use to access consumer resources. If exists is true, it contains email and unique_id. If exists is false, it contains pre-constructed email and empty unique_id.

.google.api.serviceusage.v1beta1.ServiceIdentity identity = 1;

Returns
TypeDescription
ServiceIdentity

The identity.

getIdentityOrBuilder()

public ServiceIdentityOrBuilder getIdentityOrBuilder()

Service identity that service producer can use to access consumer resources. If exists is true, it contains email and unique_id. If exists is false, it contains pre-constructed email and empty unique_id.

.google.api.serviceusage.v1beta1.ServiceIdentity identity = 1;

Returns
TypeDescription
ServiceIdentityOrBuilder

getParserForType()

public Parser<GetServiceIdentityResponse> getParserForType()
Returns
TypeDescription
Parser<GetServiceIdentityResponse>
Overrides

getSerializedSize()

public int getSerializedSize()
Returns
TypeDescription
int
Overrides

getState()

public GetServiceIdentityResponse.IdentityState getState()

Service identity state.

.google.api.serviceusage.v1beta1.GetServiceIdentityResponse.IdentityState state = 2;

Returns
TypeDescription
GetServiceIdentityResponse.IdentityState

The state.

getStateValue()

public int getStateValue()

Service identity state.

.google.api.serviceusage.v1beta1.GetServiceIdentityResponse.IdentityState state = 2;

Returns
TypeDescription
int

The enum numeric value on the wire for state.

hasIdentity()

public boolean hasIdentity()

Service identity that service producer can use to access consumer resources. If exists is true, it contains email and unique_id. If exists is false, it contains pre-constructed email and empty unique_id.

.google.api.serviceusage.v1beta1.ServiceIdentity identity = 1;

Returns
TypeDescription
boolean

Whether the identity field is set.

hashCode()

public int hashCode()
Returns
TypeDescription
int
Overrides

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

newBuilderForType()

public GetServiceIdentityResponse.Builder newBuilderForType()
Returns
TypeDescription
GetServiceIdentityResponse.Builder

newBuilderForType(GeneratedMessageV3.BuilderParent parent)

protected GetServiceIdentityResponse.Builder newBuilderForType(GeneratedMessageV3.BuilderParent parent)
Parameter
NameDescription
parentBuilderParent
Returns
TypeDescription
GetServiceIdentityResponse.Builder
Overrides

newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)

protected Object newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
Parameter
NameDescription
unusedUnusedPrivateParameter
Returns
TypeDescription
Object
Overrides

toBuilder()

public GetServiceIdentityResponse.Builder toBuilder()
Returns
TypeDescription
GetServiceIdentityResponse.Builder

writeTo(CodedOutputStream output)

public void writeTo(CodedOutputStream output)
Parameter
NameDescription
outputCodedOutputStream
Overrides
Exceptions
TypeDescription
IOException