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
Inherited Members
com.google.protobuf.GeneratedMessageV3.Builder.getUnknownFieldSetBuilder()
com.google.protobuf.GeneratedMessageV3.Builder.mergeUnknownLengthDelimitedField(int,com.google.protobuf.ByteString)
com.google.protobuf.GeneratedMessageV3.Builder.mergeUnknownVarintField(int,int)
com.google.protobuf.GeneratedMessageV3.Builder.parseUnknownField(com.google.protobuf.CodedInputStream,com.google.protobuf.ExtensionRegistryLite,int)
com.google.protobuf.GeneratedMessageV3.Builder.setUnknownFieldSetBuilder(com.google.protobuf.UnknownFieldSet.Builder)
Static Methods
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()
Returns
Methods
addRepeatedField(Descriptors.FieldDescriptor field, Object value)
public CheckResponse.ConsumerInfo.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
Returns
Overrides
build()
public CheckResponse.ConsumerInfo build()
Returns
buildPartial()
public CheckResponse.ConsumerInfo buildPartial()
Returns
clear()
public CheckResponse.ConsumerInfo.Builder clear()
Returns
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
clearField(Descriptors.FieldDescriptor field)
public CheckResponse.ConsumerInfo.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
Returns
Overrides
clearOneof(Descriptors.OneofDescriptor oneof)
public CheckResponse.ConsumerInfo.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
Returns
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
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
clone()
public CheckResponse.ConsumerInfo.Builder clone()
Returns
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
getDescriptorForType()
public Descriptors.Descriptor getDescriptorForType()
Returns
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
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
Overrides
isInitialized()
public final boolean isInitialized()
Returns
Overrides
mergeFrom(CheckResponse.ConsumerInfo other)
public CheckResponse.ConsumerInfo.Builder mergeFrom(CheckResponse.ConsumerInfo other)
Parameter
Returns
public CheckResponse.ConsumerInfo.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Overrides
Exceptions
mergeFrom(Message other)
public CheckResponse.ConsumerInfo.Builder mergeFrom(Message other)
Parameter
Returns
Overrides
mergeUnknownFields(UnknownFieldSet unknownFields)
public final CheckResponse.ConsumerInfo.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
Returns
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
setField(Descriptors.FieldDescriptor field, Object value)
public CheckResponse.ConsumerInfo.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
Returns
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
setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
public CheckResponse.ConsumerInfo.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
Returns
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
Returns
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
setUnknownFields(UnknownFieldSet unknownFields)
public final CheckResponse.ConsumerInfo.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
Returns
Overrides