Class CheckResponse.ConsumerInfo.Builder (1.28.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
TypeDescription
Descriptor

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public CheckResponse.ConsumerInfo build()
Returns
TypeDescription
CheckResponse.ConsumerInfo

buildPartial()

public CheckResponse.ConsumerInfo buildPartial()
Returns
TypeDescription
CheckResponse.ConsumerInfo

clear()

public CheckResponse.ConsumerInfo.Builder clear()
Returns
TypeDescription
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
TypeDescription
CheckResponse.ConsumerInfo.Builder

This builder for chaining.

clearField(Descriptors.FieldDescriptor field)

public CheckResponse.ConsumerInfo.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
NameDescription
fieldFieldDescriptor
Returns
TypeDescription
CheckResponse.ConsumerInfo.Builder
Overrides

clearOneof(Descriptors.OneofDescriptor oneof)

public CheckResponse.ConsumerInfo.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
NameDescription
oneofOneofDescriptor
Returns
TypeDescription
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
TypeDescription
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
TypeDescription
CheckResponse.ConsumerInfo.Builder

This builder for chaining.

clone()

public CheckResponse.ConsumerInfo.Builder clone()
Returns
TypeDescription
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
TypeDescription
long

The consumerNumber.

getDefaultInstanceForType()

public CheckResponse.ConsumerInfo getDefaultInstanceForType()
Returns
TypeDescription
CheckResponse.ConsumerInfo

getDescriptorForType()

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

The enum numeric value on the wire for type.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

mergeFrom(CheckResponse.ConsumerInfo other)

public CheckResponse.ConsumerInfo.Builder mergeFrom(CheckResponse.ConsumerInfo other)
Parameter
NameDescription
otherCheckResponse.ConsumerInfo
Returns
TypeDescription
CheckResponse.ConsumerInfo.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

public CheckResponse.ConsumerInfo.Builder mergeFrom(Message other)
Parameter
NameDescription
otherMessage
Returns
TypeDescription
CheckResponse.ConsumerInfo.Builder
Overrides

mergeUnknownFields(UnknownFieldSet unknownFields)

public final CheckResponse.ConsumerInfo.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
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
NameDescription
valuelong

The consumerNumber to set.

Returns
TypeDescription
CheckResponse.ConsumerInfo.Builder

This builder for chaining.

setField(Descriptors.FieldDescriptor field, Object value)

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

The projectNumber to set.

Returns
TypeDescription
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
NameDescription
fieldFieldDescriptor
indexint
valueObject
Returns
TypeDescription
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
NameDescription
valueCheckResponse.ConsumerInfo.ConsumerType

The type to set.

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

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

Returns
TypeDescription
CheckResponse.ConsumerInfo.Builder

This builder for chaining.

setUnknownFields(UnknownFieldSet unknownFields)

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