Class GetServiceIdentityResponse.Builder (2.83.0)

public static final class GetServiceIdentityResponse.Builder extends GeneratedMessage.Builder<GetServiceIdentityResponse.Builder> implements GetServiceIdentityResponseOrBuilder

Response message for getting service identity.

Protobuf type google.api.serviceusage.v1beta1.GetServiceIdentityResponse

Static Methods

getDescriptor()

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

Methods

build()

public GetServiceIdentityResponse build()
Returns
Type Description
GetServiceIdentityResponse

buildPartial()

public GetServiceIdentityResponse buildPartial()
Returns
Type Description
GetServiceIdentityResponse

clear()

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

clearIdentity()

public GetServiceIdentityResponse.Builder clearIdentity()

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
Type Description
GetServiceIdentityResponse.Builder

clearState()

public GetServiceIdentityResponse.Builder clearState()

Service identity state.

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

Returns
Type Description
GetServiceIdentityResponse.Builder

This builder for chaining.

getDefaultInstanceForType()

public GetServiceIdentityResponse getDefaultInstanceForType()
Returns
Type Description
GetServiceIdentityResponse

getDescriptorForType()

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

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
Type Description
ServiceIdentity

The identity.

getIdentityBuilder()

public ServiceIdentity.Builder getIdentityBuilder()

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
Type Description
ServiceIdentity.Builder

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
Type Description
ServiceIdentityOrBuilder

getState()

public GetServiceIdentityResponse.IdentityState getState()

Service identity state.

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

Returns
Type Description
GetServiceIdentityResponse.IdentityState

The state.

getStateValue()

public int getStateValue()

Service identity state.

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

Returns
Type Description
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
Type Description
boolean

Whether the identity field is set.

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(GetServiceIdentityResponse other)

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

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeIdentity(ServiceIdentity value)

public GetServiceIdentityResponse.Builder mergeIdentity(ServiceIdentity value)

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;

Parameter
Name Description
value ServiceIdentity
Returns
Type Description
GetServiceIdentityResponse.Builder

setIdentity(ServiceIdentity value)

public GetServiceIdentityResponse.Builder setIdentity(ServiceIdentity value)

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;

Parameter
Name Description
value ServiceIdentity
Returns
Type Description
GetServiceIdentityResponse.Builder

setIdentity(ServiceIdentity.Builder builderForValue)

public GetServiceIdentityResponse.Builder setIdentity(ServiceIdentity.Builder builderForValue)

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;

Parameter
Name Description
builderForValue ServiceIdentity.Builder
Returns
Type Description
GetServiceIdentityResponse.Builder

setState(GetServiceIdentityResponse.IdentityState value)

public GetServiceIdentityResponse.Builder setState(GetServiceIdentityResponse.IdentityState value)

Service identity state.

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

Parameter
Name Description
value GetServiceIdentityResponse.IdentityState

The state to set.

Returns
Type Description
GetServiceIdentityResponse.Builder

This builder for chaining.

setStateValue(int value)

public GetServiceIdentityResponse.Builder setStateValue(int value)

Service identity state.

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

Parameter
Name Description
value int

The enum numeric value on the wire for state to set.

Returns
Type Description
GetServiceIdentityResponse.Builder

This builder for chaining.