public static final class Control.Builder extends GeneratedMessageV3.Builder<Control.Builder> implements ControlOrBuilder
Selects and configures the service controller used by the service.
Example:
control:
environment: servicecontrol.googleapis.com
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()
Returns | |
---|---|
Type | Description |
Descriptor |
Methods
addRepeatedField(Descriptors.FieldDescriptor field, Object value)
public Control.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters | |
---|---|
Name | Description |
field | FieldDescriptor |
value | Object |
Returns | |
---|---|
Type | Description |
Control.Builder |
build()
public Control build()
Returns | |
---|---|
Type | Description |
Control |
buildPartial()
public Control buildPartial()
Returns | |
---|---|
Type | Description |
Control |
clear()
public Control.Builder clear()
Returns | |
---|---|
Type | Description |
Control.Builder |
clearEnvironment()
public Control.Builder clearEnvironment()
The service controller environment to use. If empty, no control plane feature (like quota and billing) will be enabled. The recommended value for most services is servicecontrol.googleapis.com
string environment = 1;
Returns | |
---|---|
Type | Description |
Control.Builder | This builder for chaining. |
clearField(Descriptors.FieldDescriptor field)
public Control.Builder clearField(Descriptors.FieldDescriptor field)
Parameter | |
---|---|
Name | Description |
field | FieldDescriptor |
Returns | |
---|---|
Type | Description |
Control.Builder |
clearOneof(Descriptors.OneofDescriptor oneof)
public Control.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter | |
---|---|
Name | Description |
oneof | OneofDescriptor |
Returns | |
---|---|
Type | Description |
Control.Builder |
clone()
public Control.Builder clone()
Returns | |
---|---|
Type | Description |
Control.Builder |
getDefaultInstanceForType()
public Control getDefaultInstanceForType()
Returns | |
---|---|
Type | Description |
Control |
getDescriptorForType()
public Descriptors.Descriptor getDescriptorForType()
Returns | |
---|---|
Type | Description |
Descriptor |
getEnvironment()
public String getEnvironment()
The service controller environment to use. If empty, no control plane feature (like quota and billing) will be enabled. The recommended value for most services is servicecontrol.googleapis.com
string environment = 1;
Returns | |
---|---|
Type | Description |
String | The environment. |
getEnvironmentBytes()
public ByteString getEnvironmentBytes()
The service controller environment to use. If empty, no control plane feature (like quota and billing) will be enabled. The recommended value for most services is servicecontrol.googleapis.com
string environment = 1;
Returns | |
---|---|
Type | Description |
ByteString | The bytes for environment. |
internalGetFieldAccessorTable()
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns | |
---|---|
Type | Description |
FieldAccessorTable |
isInitialized()
public final boolean isInitialized()
Returns | |
---|---|
Type | Description |
boolean |
mergeFrom(Control other)
public Control.Builder mergeFrom(Control other)
Parameter | |
---|---|
Name | Description |
other | Control |
Returns | |
---|---|
Type | Description |
Control.Builder |
mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
public Control.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters | |
---|---|
Name | Description |
input | CodedInputStream |
extensionRegistry | ExtensionRegistryLite |
Returns | |
---|---|
Type | Description |
Control.Builder |
Exceptions | |
---|---|
Type | Description |
IOException |
mergeFrom(Message other)
public Control.Builder mergeFrom(Message other)
Parameter | |
---|---|
Name | Description |
other | Message |
Returns | |
---|---|
Type | Description |
Control.Builder |
mergeUnknownFields(UnknownFieldSet unknownFields)
public final Control.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter | |
---|---|
Name | Description |
unknownFields | UnknownFieldSet |
Returns | |
---|---|
Type | Description |
Control.Builder |
setEnvironment(String value)
public Control.Builder setEnvironment(String value)
The service controller environment to use. If empty, no control plane feature (like quota and billing) will be enabled. The recommended value for most services is servicecontrol.googleapis.com
string environment = 1;
Parameter | |
---|---|
Name | Description |
value | String The environment to set. |
Returns | |
---|---|
Type | Description |
Control.Builder | This builder for chaining. |
setEnvironmentBytes(ByteString value)
public Control.Builder setEnvironmentBytes(ByteString value)
The service controller environment to use. If empty, no control plane feature (like quota and billing) will be enabled. The recommended value for most services is servicecontrol.googleapis.com
string environment = 1;
Parameter | |
---|---|
Name | Description |
value | ByteString The bytes for environment to set. |
Returns | |
---|---|
Type | Description |
Control.Builder | This builder for chaining. |
setField(Descriptors.FieldDescriptor field, Object value)
public Control.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters | |
---|---|
Name | Description |
field | FieldDescriptor |
value | Object |
Returns | |
---|---|
Type | Description |
Control.Builder |
setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
public Control.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters | |
---|---|
Name | Description |
field | FieldDescriptor |
index | int |
value | Object |
Returns | |
---|---|
Type | Description |
Control.Builder |
setUnknownFields(UnknownFieldSet unknownFields)
public final Control.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter | |
---|---|
Name | Description |
unknownFields | UnknownFieldSet |
Returns | |
---|---|
Type | Description |
Control.Builder |