Send feedback
Class ContextRule (2.42.0)
Stay organized with collections
Save and categorize content based on your preferences.
Version 2.42.0 keyboard_arrow_down
public final class ContextRule extends GeneratedMessageV3 implements ContextRuleOrBuilder
A context rule provides information about the context for an individual API
element.
Protobuf type google.api.ContextRule
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
ALLOWED_REQUEST_EXTENSIONS_FIELD_NUMBER
public static final int ALLOWED_REQUEST_EXTENSIONS_FIELD_NUMBER
Field Value
Type
Description
int
ALLOWED_RESPONSE_EXTENSIONS_FIELD_NUMBER
public static final int ALLOWED_RESPONSE_EXTENSIONS_FIELD_NUMBER
Field Value
Type
Description
int
PROVIDED_FIELD_NUMBER
public static final int PROVIDED_FIELD_NUMBER
Field Value
Type
Description
int
REQUESTED_FIELD_NUMBER
public static final int REQUESTED_FIELD_NUMBER
Field Value
Type
Description
int
SELECTOR_FIELD_NUMBER
public static final int SELECTOR_FIELD_NUMBER
Field Value
Type
Description
int
Static Methods
getDefaultInstance()
public static ContextRule getDefaultInstance ()
getDescriptor()
public static final Descriptors . Descriptor getDescriptor ()
newBuilder()
public static ContextRule . Builder newBuilder ()
newBuilder(ContextRule prototype)
public static ContextRule . Builder newBuilder ( ContextRule prototype )
parseDelimitedFrom(InputStream input)
public static ContextRule parseDelimitedFrom ( InputStream input )
parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
public static ContextRule parseDelimitedFrom ( InputStream input , ExtensionRegistryLite extensionRegistry )
parseFrom(byte[] data)
public static ContextRule parseFrom ( byte [] data )
Parameter
Name
Description
data
byte []
parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
public static ContextRule parseFrom ( byte [] data , ExtensionRegistryLite extensionRegistry )
parseFrom(ByteString data)
public static ContextRule parseFrom ( ByteString data )
parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
public static ContextRule parseFrom ( ByteString data , ExtensionRegistryLite extensionRegistry )
parseFrom(CodedInputStream input)
public static ContextRule parseFrom ( CodedInputStream input )
parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
public static ContextRule parseFrom ( CodedInputStream input , ExtensionRegistryLite extensionRegistry )
parseFrom(InputStream input)
public static ContextRule parseFrom ( InputStream input )
parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
public static ContextRule parseFrom ( InputStream input , ExtensionRegistryLite extensionRegistry )
parseFrom(ByteBuffer data)
public static ContextRule parseFrom ( ByteBuffer data )
parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
public static ContextRule parseFrom ( ByteBuffer data , ExtensionRegistryLite extensionRegistry )
parser()
public static Parser<ContextRule> parser ()
Methods
equals(Object obj)
public boolean equals ( Object obj )
Parameter
Name
Description
obj
Object
Overrides
getAllowedRequestExtensions(int index)
public String getAllowedRequestExtensions ( int index )
A list of full type names or extension IDs of extensions allowed in grpc
side channel from client to backend.
repeated string allowed_request_extensions = 4;
Parameter
Name
Description
index
int
The index of the element to return.
Returns
Type
Description
String
The allowedRequestExtensions at the given index.
getAllowedRequestExtensionsBytes(int index)
public ByteString getAllowedRequestExtensionsBytes ( int index )
A list of full type names or extension IDs of extensions allowed in grpc
side channel from client to backend.
repeated string allowed_request_extensions = 4;
Parameter
Name
Description
index
int
The index of the value to return.
Returns
Type
Description
ByteString
The bytes of the allowedRequestExtensions at the given index.
getAllowedRequestExtensionsCount()
public int getAllowedRequestExtensionsCount ()
A list of full type names or extension IDs of extensions allowed in grpc
side channel from client to backend.
repeated string allowed_request_extensions = 4;
Returns
Type
Description
int
The count of allowedRequestExtensions.
getAllowedRequestExtensionsList()
public ProtocolStringList getAllowedRequestExtensionsList ()
A list of full type names or extension IDs of extensions allowed in grpc
side channel from client to backend.
repeated string allowed_request_extensions = 4;
Returns
Type
Description
ProtocolStringList
A list containing the allowedRequestExtensions.
getAllowedResponseExtensions(int index)
public String getAllowedResponseExtensions ( int index )
A list of full type names or extension IDs of extensions allowed in grpc
side channel from backend to client.
repeated string allowed_response_extensions = 5;
Parameter
Name
Description
index
int
The index of the element to return.
Returns
Type
Description
String
The allowedResponseExtensions at the given index.
getAllowedResponseExtensionsBytes(int index)
public ByteString getAllowedResponseExtensionsBytes ( int index )
A list of full type names or extension IDs of extensions allowed in grpc
side channel from backend to client.
repeated string allowed_response_extensions = 5;
Parameter
Name
Description
index
int
The index of the value to return.
Returns
Type
Description
ByteString
The bytes of the allowedResponseExtensions at the given index.
getAllowedResponseExtensionsCount()
public int getAllowedResponseExtensionsCount ()
A list of full type names or extension IDs of extensions allowed in grpc
side channel from backend to client.
repeated string allowed_response_extensions = 5;
Returns
Type
Description
int
The count of allowedResponseExtensions.
getAllowedResponseExtensionsList()
public ProtocolStringList getAllowedResponseExtensionsList ()
A list of full type names or extension IDs of extensions allowed in grpc
side channel from backend to client.
repeated string allowed_response_extensions = 5;
Returns
Type
Description
ProtocolStringList
A list containing the allowedResponseExtensions.
getDefaultInstanceForType()
public ContextRule getDefaultInstanceForType ()
getParserForType()
public Parser<ContextRule> getParserForType ()
Overrides
getProvided(int index)
public String getProvided ( int index )
A list of full type names of provided contexts.
repeated string provided = 3;
Parameter
Name
Description
index
int
The index of the element to return.
Returns
Type
Description
String
The provided at the given index.
getProvidedBytes(int index)
public ByteString getProvidedBytes ( int index )
A list of full type names of provided contexts.
repeated string provided = 3;
Parameter
Name
Description
index
int
The index of the value to return.
Returns
Type
Description
ByteString
The bytes of the provided at the given index.
getProvidedCount()
public int getProvidedCount ()
A list of full type names of provided contexts.
repeated string provided = 3;
Returns
Type
Description
int
The count of provided.
getProvidedList()
public ProtocolStringList getProvidedList ()
A list of full type names of provided contexts.
repeated string provided = 3;
getRequested(int index)
public String getRequested ( int index )
A list of full type names of requested contexts.
repeated string requested = 2;
Parameter
Name
Description
index
int
The index of the element to return.
Returns
Type
Description
String
The requested at the given index.
getRequestedBytes(int index)
public ByteString getRequestedBytes ( int index )
A list of full type names of requested contexts.
repeated string requested = 2;
Parameter
Name
Description
index
int
The index of the value to return.
Returns
Type
Description
ByteString
The bytes of the requested at the given index.
getRequestedCount()
public int getRequestedCount ()
A list of full type names of requested contexts.
repeated string requested = 2;
Returns
Type
Description
int
The count of requested.
getRequestedList()
public ProtocolStringList getRequestedList ()
A list of full type names of requested contexts.
repeated string requested = 2;
getSelector()
public String getSelector ()
Selects the methods to which this rule applies.
Refer to selector for syntax
details.
string selector = 1;
Returns
Type
Description
String
The selector.
getSelectorBytes()
public ByteString getSelectorBytes ()
Selects the methods to which this rule applies.
Refer to selector for syntax
details.
string selector = 1;
Returns
Type
Description
ByteString
The bytes for selector.
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 ContextRule . Builder newBuilderForType ()
newBuilderForType(GeneratedMessageV3.BuilderParent parent)
protected ContextRule . Builder newBuilderForType ( GeneratedMessageV3 . BuilderParent parent )
Overrides
newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
protected Object newInstance ( GeneratedMessageV3 . UnusedPrivateParameter unused )
Returns
Type
Description
Object
Overrides
toBuilder()
public ContextRule . 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-02-04 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-02-04 UTC."],[],[]]