- 2.65.1 (latest)
- 2.65.0
- 2.64.1
- 2.63.2
- 2.62.0
- 2.61.3
- 2.60.0
- 2.59.2
- 2.58.0
- 2.57.0
- 2.56.0
- 2.54.1
- 2.53.0
- 2.52.0
- 2.51.0
- 2.50.1
- 2.49.0
- 2.48.0
- 2.46.0
- 2.45.1
- 2.44.0
- 2.43.0
- 2.42.0
- 2.41.0
- 2.40.0
- 2.39.1
- 2.38.0
- 2.37.1
- 2.36.0
- 2.34.0
- 2.33.0
- 2.32.0
- 2.30.0
- 2.29.0
- 2.28.0
- 2.27.0
- 2.26.0
- 2.25.1
- 2.24.0
- 2.23.1
- 2.22.1
- 2.21.1
- 2.15.0
- 2.14.3
- 2.13.0
- 2.12.0
- 2.11.0
- 2.10.0
- 2.9.6
- 2.8.4
- 2.7.4
public static final class Control.Builder extends GeneratedMessage.Builder<Control.Builder> implements ControlOrBuilderSelects and configures the service controller used by the service.
Example:
control: environment: servicecontrol.googleapis.com
Protobuf type google.api.Control
Inheritance
java.lang.Object > AbstractMessageLite.Builder<MessageType,BuilderType> > AbstractMessage.Builder<BuilderType> > GeneratedMessage.Builder > Control.BuilderImplements
ControlOrBuilderStatic Methods
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()| Returns | |
|---|---|
| Type | Description |
Descriptor |
|
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> |
| Returns | |
|---|---|
| Type | Description |
Control.Builder |
|
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;
| Parameter | |
|---|---|
| Name | Description |
value |
MethodPolicy |
| Returns | |
|---|---|
| Type | Description |
Control.Builder |
|
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;
| Parameter | |
|---|---|
| Name | Description |
builderForValue |
MethodPolicy.Builder |
| Returns | |
|---|---|
| Type | Description |
Control.Builder |
|
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;
| Parameters | |
|---|---|
| Name | Description |
index |
int |
value |
MethodPolicy |
| Returns | |
|---|---|
| Type | Description |
Control.Builder |
|
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;
| Parameters | |
|---|---|
| Name | Description |
index |
int |
builderForValue |
MethodPolicy.Builder |
| Returns | |
|---|---|
| Type | Description |
Control.Builder |
|
addMethodPoliciesBuilder()
public MethodPolicy.Builder addMethodPoliciesBuilder()Defines policies applying to the API methods of the service.
repeated .google.api.MethodPolicy method_policies = 4;
| Returns | |
|---|---|
| Type | Description |
MethodPolicy.Builder |
|
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 |
| Returns | |
|---|---|
| Type | Description |
MethodPolicy.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. |
clearMethodPolicies()
public Control.Builder clearMethodPolicies()Defines policies applying to the API methods of the service.
repeated .google.api.MethodPolicy method_policies = 4;
| 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. |
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 |
| Returns | |
|---|---|
| Type | Description |
MethodPolicy |
|
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 |
| Returns | |
|---|---|
| Type | Description |
MethodPolicy.Builder |
|
getMethodPoliciesBuilderList()
public List<MethodPolicy.Builder> getMethodPoliciesBuilderList()Defines policies applying to the API methods of the service.
repeated .google.api.MethodPolicy method_policies = 4;
| Returns | |
|---|---|
| Type | Description |
List<Builder> |
|
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;
| Returns | |
|---|---|
| Type | Description |
List<MethodPolicy> |
|
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 |
| Returns | |
|---|---|
| Type | Description |
MethodPolicyOrBuilder |
|
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 GeneratedMessage.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 |
|
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 |
| 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 |
StringThe 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 |
ByteStringThe bytes for environment to set. |
| Returns | |
|---|---|
| Type | Description |
Control.Builder |
This builder for chaining. |
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;
| Parameters | |
|---|---|
| Name | Description |
index |
int |
value |
MethodPolicy |
| Returns | |
|---|---|
| Type | Description |
Control.Builder |
|
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;
| Parameters | |
|---|---|
| Name | Description |
index |
int |
builderForValue |
MethodPolicy.Builder |
| Returns | |
|---|---|
| Type | Description |
Control.Builder |
|