public static final class Control.Builder extends GeneratedMessageV3.Builder<Control.Builder> implements ControlOrBuilder
Selects and configures the service controller used by the service. The service controller handles features like abuse, quota, billing, logging, monitoring, etc.
Protobuf type google.api.Control
Inheritance
Object > AbstractMessageLite.Builder<MessageType,BuilderType> > AbstractMessage.Builder<BuilderType> > GeneratedMessageV3.Builder > Control.BuilderImplements
ControlOrBuilderStatic Methods
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()
Type | Description |
Descriptor |
Methods
addRepeatedField(Descriptors.FieldDescriptor field, Object value)
public Control.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Name | Description |
field | FieldDescriptor |
value | Object |
Type | Description |
Control.Builder |
build()
public Control build()
Type | Description |
Control |
buildPartial()
public Control buildPartial()
Type | Description |
Control |
clear()
public Control.Builder clear()
Type | Description |
Control.Builder |
clearEnvironment()
public Control.Builder clearEnvironment()
The service control environment to use. If empty, no control plane feature (like quota and billing) will be enabled.
string environment = 1;
Type | Description |
Control.Builder | This builder for chaining. |
clearField(Descriptors.FieldDescriptor field)
public Control.Builder clearField(Descriptors.FieldDescriptor field)
Name | Description |
field | FieldDescriptor |
Type | Description |
Control.Builder |
clearOneof(Descriptors.OneofDescriptor oneof)
public Control.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Name | Description |
oneof | OneofDescriptor |
Type | Description |
Control.Builder |
clone()
public Control.Builder clone()
Type | Description |
Control.Builder |
getDefaultInstanceForType()
public Control getDefaultInstanceForType()
Type | Description |
Control |
getDescriptorForType()
public Descriptors.Descriptor getDescriptorForType()
Type | Description |
Descriptor |
getEnvironment()
public String getEnvironment()
The service control environment to use. If empty, no control plane feature (like quota and billing) will be enabled.
string environment = 1;
Type | Description |
String | The environment. |
getEnvironmentBytes()
public ByteString getEnvironmentBytes()
The service control environment to use. If empty, no control plane feature (like quota and billing) will be enabled.
string environment = 1;
Type | Description |
ByteString | The bytes for environment. |
internalGetFieldAccessorTable()
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Type | Description |
FieldAccessorTable |
isInitialized()
public final boolean isInitialized()
Type | Description |
boolean |
mergeFrom(Control other)
public Control.Builder mergeFrom(Control other)
Name | Description |
other | Control |
Type | Description |
Control.Builder |
mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
public Control.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Name | Description |
input | CodedInputStream |
extensionRegistry | ExtensionRegistryLite |
Type | Description |
Control.Builder |
Type | Description |
IOException |
mergeFrom(Message other)
public Control.Builder mergeFrom(Message other)
Name | Description |
other | Message |
Type | Description |
Control.Builder |
mergeUnknownFields(UnknownFieldSet unknownFields)
public final Control.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Name | Description |
unknownFields | UnknownFieldSet |
Type | Description |
Control.Builder |
setEnvironment(String value)
public Control.Builder setEnvironment(String value)
The service control environment to use. If empty, no control plane feature (like quota and billing) will be enabled.
string environment = 1;
Name | Description |
value | String The environment to set. |
Type | Description |
Control.Builder | This builder for chaining. |
setEnvironmentBytes(ByteString value)
public Control.Builder setEnvironmentBytes(ByteString value)
The service control environment to use. If empty, no control plane feature (like quota and billing) will be enabled.
string environment = 1;
Name | Description |
value | ByteString The bytes for environment to set. |
Type | Description |
Control.Builder | This builder for chaining. |
setField(Descriptors.FieldDescriptor field, Object value)
public Control.Builder setField(Descriptors.FieldDescriptor field, Object value)
Name | Description |
field | FieldDescriptor |
value | Object |
Type | Description |
Control.Builder |
setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
public Control.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Name | Description |
field | FieldDescriptor |
index | int |
value | Object |
Type | Description |
Control.Builder |
setUnknownFields(UnknownFieldSet unknownFields)
public final Control.Builder setUnknownFields(UnknownFieldSet unknownFields)
Name | Description |
unknownFields | UnknownFieldSet |
Type | Description |
Control.Builder |