Class GetServiceIdentityResponse.Builder (2.3.7)

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

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public GetServiceIdentityResponse build()
Returns
TypeDescription
GetServiceIdentityResponse

buildPartial()

public GetServiceIdentityResponse buildPartial()
Returns
TypeDescription
GetServiceIdentityResponse

clear()

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

clearField(Descriptors.FieldDescriptor field)

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

clearOneof(Descriptors.OneofDescriptor oneof)

public GetServiceIdentityResponse.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
NameDescription
oneofOneofDescriptor
Returns
TypeDescription
GetServiceIdentityResponse.Builder
Overrides

clearState()

public GetServiceIdentityResponse.Builder clearState()

Service identity state.

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

Returns
TypeDescription
GetServiceIdentityResponse.Builder

This builder for chaining.

clone()

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

getDefaultInstanceForType()

public GetServiceIdentityResponse getDefaultInstanceForType()
Returns
TypeDescription
GetServiceIdentityResponse

getDescriptorForType()

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

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.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

mergeFrom(GetServiceIdentityResponse other)

public GetServiceIdentityResponse.Builder mergeFrom(GetServiceIdentityResponse other)
Parameter
NameDescription
otherGetServiceIdentityResponse
Returns
TypeDescription
GetServiceIdentityResponse.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

public GetServiceIdentityResponse.Builder mergeFrom(Message other)
Parameter
NameDescription
otherMessage
Returns
TypeDescription
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
NameDescription
valueServiceIdentity
Returns
TypeDescription
GetServiceIdentityResponse.Builder

mergeUnknownFields(UnknownFieldSet unknownFields)

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

setField(Descriptors.FieldDescriptor field, Object value)

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

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

public GetServiceIdentityResponse.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
NameDescription
fieldFieldDescriptor
indexint
valueObject
Returns
TypeDescription
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
NameDescription
valueGetServiceIdentityResponse.IdentityState

The state to set.

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

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

Returns
TypeDescription
GetServiceIdentityResponse.Builder

This builder for chaining.

setUnknownFields(UnknownFieldSet unknownFields)

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