Class Control.Builder (2.12.0)

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

Implements

ControlOrBuilder

Static Methods

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
TypeDescription
Descriptor

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public Control build()
Returns
TypeDescription
Control

buildPartial()

public Control buildPartial()
Returns
TypeDescription
Control

clear()

public Control.Builder clear()
Returns
TypeDescription
Control.Builder
Overrides

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
TypeDescription
Control.Builder

This builder for chaining.

clearField(Descriptors.FieldDescriptor field)

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

clearOneof(Descriptors.OneofDescriptor oneof)

public Control.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
NameDescription
oneofOneofDescriptor
Returns
TypeDescription
Control.Builder
Overrides

clone()

public Control.Builder clone()
Returns
TypeDescription
Control.Builder
Overrides

getDefaultInstanceForType()

public Control getDefaultInstanceForType()
Returns
TypeDescription
Control

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
Descriptor
Overrides

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
TypeDescription
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
TypeDescription
ByteString

The bytes for environment.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

mergeFrom(Control other)

public Control.Builder mergeFrom(Control other)
Parameter
NameDescription
otherControl
Returns
TypeDescription
Control.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

public final Control.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
Control.Builder
Overrides

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
NameDescription
valueString

The environment to set.

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

The bytes for environment to set.

Returns
TypeDescription
Control.Builder

This builder for chaining.

setField(Descriptors.FieldDescriptor field, Object value)

public Control.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
Control.Builder
Overrides

setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)

public Control.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
NameDescription
fieldFieldDescriptor
indexint
valueObject
Returns
TypeDescription
Control.Builder
Overrides

setUnknownFields(UnknownFieldSet unknownFields)

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