Class CheckResponse.ConsumerInfo.Builder (1.55.0)

public static final class CheckResponse.ConsumerInfo.Builder extends GeneratedMessageV3.Builder<CheckResponse.ConsumerInfo.Builder> implements CheckResponse.ConsumerInfoOrBuilder

ConsumerInfo provides information about the consumer.

Protobuf type google.api.servicecontrol.v1.CheckResponse.ConsumerInfo

Static Methods

getDescriptor()

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

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public CheckResponse.ConsumerInfo build()
Returns
Type Description
CheckResponse.ConsumerInfo

buildPartial()

public CheckResponse.ConsumerInfo buildPartial()
Returns
Type Description
CheckResponse.ConsumerInfo

clear()

public CheckResponse.ConsumerInfo.Builder clear()
Returns
Type Description
CheckResponse.ConsumerInfo.Builder
Overrides

clearConsumerNumber()

public CheckResponse.ConsumerInfo.Builder clearConsumerNumber()

The consumer identity number, can be Google cloud project number, folder number or organization number e.g. 1234567890. A value of 0 indicates no consumer number is found.

int64 consumer_number = 3;

Returns
Type Description
CheckResponse.ConsumerInfo.Builder

This builder for chaining.

clearField(Descriptors.FieldDescriptor field)

public CheckResponse.ConsumerInfo.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
Name Description
field FieldDescriptor
Returns
Type Description
CheckResponse.ConsumerInfo.Builder
Overrides

clearOneof(Descriptors.OneofDescriptor oneof)

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

clearProjectNumber()

public CheckResponse.ConsumerInfo.Builder clearProjectNumber()

The Google cloud project number, e.g. 1234567890. A value of 0 indicates no project number is found.

NOTE: This field is deprecated after we support flexible consumer id. New code should not depend on this field anymore.

int64 project_number = 1;

Returns
Type Description
CheckResponse.ConsumerInfo.Builder

This builder for chaining.

clearType()

public CheckResponse.ConsumerInfo.Builder clearType()

The type of the consumer which should have been defined in Google Resource Manager.

.google.api.servicecontrol.v1.CheckResponse.ConsumerInfo.ConsumerType type = 2;

Returns
Type Description
CheckResponse.ConsumerInfo.Builder

This builder for chaining.

clone()

public CheckResponse.ConsumerInfo.Builder clone()
Returns
Type Description
CheckResponse.ConsumerInfo.Builder
Overrides

getConsumerNumber()

public long getConsumerNumber()

The consumer identity number, can be Google cloud project number, folder number or organization number e.g. 1234567890. A value of 0 indicates no consumer number is found.

int64 consumer_number = 3;

Returns
Type Description
long

The consumerNumber.

getDefaultInstanceForType()

public CheckResponse.ConsumerInfo getDefaultInstanceForType()
Returns
Type Description
CheckResponse.ConsumerInfo

getDescriptorForType()

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

getProjectNumber()

public long getProjectNumber()

The Google cloud project number, e.g. 1234567890. A value of 0 indicates no project number is found.

NOTE: This field is deprecated after we support flexible consumer id. New code should not depend on this field anymore.

int64 project_number = 1;

Returns
Type Description
long

The projectNumber.

getType()

public CheckResponse.ConsumerInfo.ConsumerType getType()

The type of the consumer which should have been defined in Google Resource Manager.

.google.api.servicecontrol.v1.CheckResponse.ConsumerInfo.ConsumerType type = 2;

Returns
Type Description
CheckResponse.ConsumerInfo.ConsumerType

The type.

getTypeValue()

public int getTypeValue()

The type of the consumer which should have been defined in Google Resource Manager.

.google.api.servicecontrol.v1.CheckResponse.ConsumerInfo.ConsumerType type = 2;

Returns
Type Description
int

The enum numeric value on the wire for type.

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(CheckResponse.ConsumerInfo other)

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

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

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

setConsumerNumber(long value)

public CheckResponse.ConsumerInfo.Builder setConsumerNumber(long value)

The consumer identity number, can be Google cloud project number, folder number or organization number e.g. 1234567890. A value of 0 indicates no consumer number is found.

int64 consumer_number = 3;

Parameter
Name Description
value long

The consumerNumber to set.

Returns
Type Description
CheckResponse.ConsumerInfo.Builder

This builder for chaining.

setField(Descriptors.FieldDescriptor field, Object value)

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

setProjectNumber(long value)

public CheckResponse.ConsumerInfo.Builder setProjectNumber(long value)

The Google cloud project number, e.g. 1234567890. A value of 0 indicates no project number is found.

NOTE: This field is deprecated after we support flexible consumer id. New code should not depend on this field anymore.

int64 project_number = 1;

Parameter
Name Description
value long

The projectNumber to set.

Returns
Type Description
CheckResponse.ConsumerInfo.Builder

This builder for chaining.

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

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

setType(CheckResponse.ConsumerInfo.ConsumerType value)

public CheckResponse.ConsumerInfo.Builder setType(CheckResponse.ConsumerInfo.ConsumerType value)

The type of the consumer which should have been defined in Google Resource Manager.

.google.api.servicecontrol.v1.CheckResponse.ConsumerInfo.ConsumerType type = 2;

Parameter
Name Description
value CheckResponse.ConsumerInfo.ConsumerType

The type to set.

Returns
Type Description
CheckResponse.ConsumerInfo.Builder

This builder for chaining.

setTypeValue(int value)

public CheckResponse.ConsumerInfo.Builder setTypeValue(int value)

The type of the consumer which should have been defined in Google Resource Manager.

.google.api.servicecontrol.v1.CheckResponse.ConsumerInfo.ConsumerType type = 2;

Parameter
Name Description
value int

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

Returns
Type Description
CheckResponse.ConsumerInfo.Builder

This builder for chaining.

setUnknownFields(UnknownFieldSet unknownFields)

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