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
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
addAllMethodPolicies(Iterable<? extends MethodPolicy> values)
public Control.Builder addAllMethodPolicies(Iterable<? extends MethodPolicy> values)
Defines policies applying to the API methods of the service.
repeated .google.api.MethodPolicy method_policies = 4;
Parameter |
---|
Name | Description |
values | Iterable<? extends com.google.api.MethodPolicy>
|
addMethodPolicies(MethodPolicy value)
public Control.Builder addMethodPolicies(MethodPolicy value)
Defines policies applying to the API methods of the service.
repeated .google.api.MethodPolicy method_policies = 4;
addMethodPolicies(MethodPolicy.Builder builderForValue)
public Control.Builder addMethodPolicies(MethodPolicy.Builder builderForValue)
Defines policies applying to the API methods of the service.
repeated .google.api.MethodPolicy method_policies = 4;
addMethodPolicies(int index, MethodPolicy value)
public Control.Builder addMethodPolicies(int index, MethodPolicy value)
Defines policies applying to the API methods of the service.
repeated .google.api.MethodPolicy method_policies = 4;
addMethodPolicies(int index, MethodPolicy.Builder builderForValue)
public Control.Builder addMethodPolicies(int index, MethodPolicy.Builder builderForValue)
Defines policies applying to the API methods of the service.
repeated .google.api.MethodPolicy method_policies = 4;
addMethodPoliciesBuilder()
public MethodPolicy.Builder addMethodPoliciesBuilder()
Defines policies applying to the API methods of the service.
repeated .google.api.MethodPolicy method_policies = 4;
addMethodPoliciesBuilder(int index)
public MethodPolicy.Builder addMethodPoliciesBuilder(int index)
Defines policies applying to the API methods of the service.
repeated .google.api.MethodPolicy method_policies = 4;
Parameter |
---|
Name | Description |
index | int
|
addRepeatedField(Descriptors.FieldDescriptor field, Object value)
public Control.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Overrides
build()
buildPartial()
public Control buildPartial()
clear()
public Control.Builder clear()
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;
clearField(Descriptors.FieldDescriptor field)
public Control.Builder clearField(Descriptors.FieldDescriptor field)
Overrides
clearMethodPolicies()
public Control.Builder clearMethodPolicies()
Defines policies applying to the API methods of the service.
repeated .google.api.MethodPolicy method_policies = 4;
clearOneof(Descriptors.OneofDescriptor oneof)
public Control.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Overrides
clone()
public Control.Builder clone()
Overrides
getDefaultInstanceForType()
public Control getDefaultInstanceForType()
getDescriptorForType()
public Descriptors.Descriptor getDescriptorForType()
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 |
---|
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.
|
getMethodPolicies(int index)
public MethodPolicy getMethodPolicies(int index)
Defines policies applying to the API methods of the service.
repeated .google.api.MethodPolicy method_policies = 4;
Parameter |
---|
Name | Description |
index | int
|
getMethodPoliciesBuilder(int index)
public MethodPolicy.Builder getMethodPoliciesBuilder(int index)
Defines policies applying to the API methods of the service.
repeated .google.api.MethodPolicy method_policies = 4;
Parameter |
---|
Name | Description |
index | int
|
getMethodPoliciesBuilderList()
public List<MethodPolicy.Builder> getMethodPoliciesBuilderList()
Defines policies applying to the API methods of the service.
repeated .google.api.MethodPolicy method_policies = 4;
getMethodPoliciesCount()
public int getMethodPoliciesCount()
Defines policies applying to the API methods of the service.
repeated .google.api.MethodPolicy method_policies = 4;
Returns |
---|
Type | Description |
int | |
getMethodPoliciesList()
public List<MethodPolicy> getMethodPoliciesList()
Defines policies applying to the API methods of the service.
repeated .google.api.MethodPolicy method_policies = 4;
getMethodPoliciesOrBuilder(int index)
public MethodPolicyOrBuilder getMethodPoliciesOrBuilder(int index)
Defines policies applying to the API methods of the service.
repeated .google.api.MethodPolicy method_policies = 4;
Parameter |
---|
Name | Description |
index | int
|
getMethodPoliciesOrBuilderList()
public List<? extends MethodPolicyOrBuilder> getMethodPoliciesOrBuilderList()
Defines policies applying to the API methods of the service.
repeated .google.api.MethodPolicy method_policies = 4;
Returns |
---|
Type | Description |
List<? extends com.google.api.MethodPolicyOrBuilder> | |
internalGetFieldAccessorTable()
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Overrides
isInitialized()
public final boolean isInitialized()
Overrides
mergeFrom(Control other)
public Control.Builder mergeFrom(Control other)
Parameter |
---|
Name | Description |
other | Control
|
public Control.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Overrides
mergeFrom(Message other)
public Control.Builder mergeFrom(Message other)
Parameter |
---|
Name | Description |
other | Message
|
Overrides
mergeUnknownFields(UnknownFieldSet unknownFields)
public final Control.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Overrides
removeMethodPolicies(int index)
public Control.Builder removeMethodPolicies(int index)
Defines policies applying to the API methods of the service.
repeated .google.api.MethodPolicy method_policies = 4;
Parameter |
---|
Name | Description |
index | int
|
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.
|
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.
|
setField(Descriptors.FieldDescriptor field, Object value)
public Control.Builder setField(Descriptors.FieldDescriptor field, Object value)
Overrides
setMethodPolicies(int index, MethodPolicy value)
public Control.Builder setMethodPolicies(int index, MethodPolicy value)
Defines policies applying to the API methods of the service.
repeated .google.api.MethodPolicy method_policies = 4;
setMethodPolicies(int index, MethodPolicy.Builder builderForValue)
public Control.Builder setMethodPolicies(int index, MethodPolicy.Builder builderForValue)
Defines policies applying to the API methods of the service.
repeated .google.api.MethodPolicy method_policies = 4;
setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
public Control.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Overrides
setUnknownFields(UnknownFieldSet unknownFields)
public final Control.Builder setUnknownFields(UnknownFieldSet unknownFields)
Overrides