Class GetServiceIdentityResponse.Builder (2.54.0)

public static final class GetServiceIdentityResponse.Builder extends GeneratedMessageV3.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

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

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

clearField(Descriptors.FieldDescriptor field)

public GetServiceIdentityResponse.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
Name Description
field FieldDescriptor
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

clearOneof(Descriptors.OneofDescriptor oneof)

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

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.

clone()

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

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

mergeUnknownFields(UnknownFieldSet unknownFields)

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

setField(Descriptors.FieldDescriptor field, Object value)

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

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

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

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

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.

setUnknownFields(UnknownFieldSet unknownFields)

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