Send feedback
Class Control (2.50.1)
Stay organized with collections
Save and categorize content based on your preferences.
Version latest keyboard_arrow_down
public final class Control extends GeneratedMessageV3 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.<ListT>makeMutableCopy(ListT)
com.google.protobuf.GeneratedMessageV3.<ListT>makeMutableCopy(ListT,int)
com.google.protobuf.GeneratedMessageV3.<T>emptyList(java.lang.Class<T>)
com.google.protobuf.GeneratedMessageV3.internalGetMapFieldReflection(int)
Static Fields
ENVIRONMENT_FIELD_NUMBER
public static final int ENVIRONMENT_FIELD_NUMBER
Field Value
Type
Description
int
METHOD_POLICIES_FIELD_NUMBER
public static final int METHOD_POLICIES_FIELD_NUMBER
Field Value
Type
Description
int
Static Methods
getDefaultInstance()
public static Control getDefaultInstance ()
getDescriptor()
public static final Descriptors . Descriptor getDescriptor ()
newBuilder()
public static Control . Builder newBuilder ()
newBuilder(Control prototype)
public static Control . Builder newBuilder ( Control prototype )
Parameter
Name
Description
prototype
Control
public static Control parseDelimitedFrom ( InputStream input )
public static Control parseDelimitedFrom ( InputStream input , ExtensionRegistryLite extensionRegistry )
parseFrom(byte[] data)
public static Control parseFrom ( byte [] data )
Parameter
Name
Description
data
byte []
parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
public static Control parseFrom ( byte [] data , ExtensionRegistryLite extensionRegistry )
parseFrom(ByteString data)
public static Control parseFrom ( ByteString data )
parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
public static Control parseFrom ( ByteString data , ExtensionRegistryLite extensionRegistry )
public static Control parseFrom ( CodedInputStream input )
public static Control parseFrom ( CodedInputStream input , ExtensionRegistryLite extensionRegistry )
public static Control parseFrom ( InputStream input )
public static Control parseFrom ( InputStream input , ExtensionRegistryLite extensionRegistry )
parseFrom(ByteBuffer data)
public static Control parseFrom ( ByteBuffer data )
parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
public static Control parseFrom ( ByteBuffer data , ExtensionRegistryLite extensionRegistry )
parser()
public static Parser<Control> parser ()
Methods
equals(Object obj)
public boolean equals ( Object obj )
Parameter
Name
Description
obj
Object
Overrides
getDefaultInstanceForType()
public Control getDefaultInstanceForType ()
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
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 >
getParserForType()
public Parser<Control> getParserForType ()
Overrides
getSerializedSize()
public int getSerializedSize ()
Returns
Type
Description
int
Overrides
hashCode()
Returns
Type
Description
int
Overrides
internalGetFieldAccessorTable()
protected GeneratedMessageV3 . FieldAccessorTable internalGetFieldAccessorTable ()
Overrides
isInitialized()
public final boolean isInitialized ()
Overrides
newBuilderForType()
public Control . Builder newBuilderForType ()
newBuilderForType(GeneratedMessageV3.BuilderParent parent)
protected Control . Builder newBuilderForType ( GeneratedMessageV3 . BuilderParent parent )
Overrides
newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
protected Object newInstance ( GeneratedMessageV3 . UnusedPrivateParameter unused )
Returns
Type
Description
Object
Overrides
toBuilder()
public Control . Builder toBuilder ()
writeTo(CodedOutputStream output)
public void writeTo ( CodedOutputStream output )
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-28 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-28 UTC."],[],[]]