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.internalGetMapFieldReflection(int)
com.google.protobuf.GeneratedMessageV3.Builder.internalGetMutableMapFieldReflection(int)
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()
Methods
addRepeatedField(Descriptors.FieldDescriptor field, Object value)
public CheckResponse.ConsumerInfo.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Overrides
build()
public CheckResponse.ConsumerInfo build()
buildPartial()
public CheckResponse.ConsumerInfo buildPartial()
clear()
public CheckResponse.ConsumerInfo.Builder clear()
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;
clearField(Descriptors.FieldDescriptor field)
public CheckResponse.ConsumerInfo.Builder clearField(Descriptors.FieldDescriptor field)
Overrides
clearOneof(Descriptors.OneofDescriptor oneof)
public CheckResponse.ConsumerInfo.Builder clearOneof(Descriptors.OneofDescriptor oneof)
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;
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;
clone()
public CheckResponse.ConsumerInfo.Builder clone()
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()
getDescriptorForType()
public Descriptors.Descriptor getDescriptorForType()
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;
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()
Overrides
isInitialized()
public final boolean isInitialized()
Overrides
mergeFrom(CheckResponse.ConsumerInfo other)
public CheckResponse.ConsumerInfo.Builder mergeFrom(CheckResponse.ConsumerInfo other)
public CheckResponse.ConsumerInfo.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Overrides
mergeFrom(Message other)
public CheckResponse.ConsumerInfo.Builder mergeFrom(Message other)
Parameter |
---|
Name | Description |
other | Message
|
Overrides
mergeUnknownFields(UnknownFieldSet unknownFields)
public final CheckResponse.ConsumerInfo.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
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.
|
setField(Descriptors.FieldDescriptor field, Object value)
public CheckResponse.ConsumerInfo.Builder setField(Descriptors.FieldDescriptor field, Object value)
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.
|
setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
public CheckResponse.ConsumerInfo.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
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;
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.
|
setUnknownFields(UnknownFieldSet unknownFields)
public final CheckResponse.ConsumerInfo.Builder setUnknownFields(UnknownFieldSet unknownFields)
Overrides