Send feedback
Class Control.Builder (2.9.5)
Stay organized with collections
Save and categorize content based on your preferences.
Version 2.9.5 keyboard_arrow_down
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
Inherited Members
com.google.protobuf.GeneratedMessageV3.Builder.getUnknownFieldSetBuilder()
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 ()
Returns
Methods
addRepeatedField(Descriptors.FieldDescriptor field, Object value)
public Control . Builder addRepeatedField ( Descriptors . FieldDescriptor field , Object value )
Parameters
Returns
Overrides
build()
Returns
buildPartial()
public Control buildPartial ()
Returns
clear()
public Control . Builder clear ()
Returns
Overrides
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;
Returns
clearField(Descriptors.FieldDescriptor field)
public Control . Builder clearField ( Descriptors . FieldDescriptor field )
Parameter
Returns
Overrides
clearOneof(Descriptors.OneofDescriptor oneof)
public Control . Builder clearOneof ( Descriptors . OneofDescriptor oneof )
Parameter
Returns
Overrides
clone()
public Control . Builder clone ()
Returns
Overrides
getDefaultInstanceForType()
public Control getDefaultInstanceForType ()
Returns
getDescriptorForType()
public Descriptors . Descriptor getDescriptorForType ()
Returns
Overrides
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;
Returns
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;
Returns
Type Description ByteString The bytes for environment.
internalGetFieldAccessorTable()
protected GeneratedMessageV3 . FieldAccessorTable internalGetFieldAccessorTable ()
Returns
Overrides
isInitialized()
public final boolean isInitialized ()
Returns
Overrides
mergeFrom(Control other)
public Control . Builder mergeFrom ( Control other )
Parameter
Returns
public Control . Builder mergeFrom ( CodedInputStream input , ExtensionRegistryLite extensionRegistry )
Parameters
Returns
Overrides
Exceptions
mergeFrom(Message other)
public Control . Builder mergeFrom ( Message other )
Parameter
Returns
Overrides
mergeUnknownFields(UnknownFieldSet unknownFields)
public final Control . Builder mergeUnknownFields ( UnknownFieldSet unknownFields )
Parameter
Returns
Overrides
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;
Parameter
Name Description value String
The environment to set.
Returns
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;
Parameter
Name Description value ByteString
The bytes for environment to set.
Returns
setField(Descriptors.FieldDescriptor field, Object value)
public Control . Builder setField ( Descriptors . FieldDescriptor field , Object value )
Parameters
Returns
Overrides
setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
public Control . Builder setRepeatedField ( Descriptors . FieldDescriptor field , int index , Object value )
Parameters
Returns
Overrides
setUnknownFields(UnknownFieldSet unknownFields)
public final Control . Builder setUnknownFields ( UnknownFieldSet unknownFields )
Parameter
Returns
Overrides
Send feedback
Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License , and code samples are licensed under the Apache 2.0 License . For details, see the Google Developers Site Policies . Java is a registered trademark of Oracle and/or its affiliates.
Last updated 2025-01-21 UTC.
Need to tell us more?
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Hard to understand","hardToUnderstand","thumb-down"],["Incorrect information or sample code","incorrectInformationOrSampleCode","thumb-down"],["Missing the information/samples I need","missingTheInformationSamplesINeed","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-01-21 UTC."],[],[]]