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
Static Fields
ALLOWED_REQUEST_EXTENSIONS_FIELD_NUMBER
public static final int ALLOWED_REQUEST_EXTENSIONS_FIELD_NUMBER
Field Value
ALLOWED_RESPONSE_EXTENSIONS_FIELD_NUMBER
public static final int ALLOWED_RESPONSE_EXTENSIONS_FIELD_NUMBER
Field Value
PROVIDED_FIELD_NUMBER
public static final int PROVIDED_FIELD_NUMBER
Field Value
REQUESTED_FIELD_NUMBER
public static final int REQUESTED_FIELD_NUMBER
Field Value
SELECTOR_FIELD_NUMBER
public static final int SELECTOR_FIELD_NUMBER
Field Value
Static Methods
getDefaultInstance()
public static ContextRule getDefaultInstance()
Returns
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()
Returns
newBuilder()
public static ContextRule.Builder newBuilder()
Returns
newBuilder(ContextRule prototype)
public static ContextRule.Builder newBuilder(ContextRule prototype)
Parameter
Returns
parseDelimitedFrom(InputStream input)
public static ContextRule parseDelimitedFrom(InputStream input)
Parameter
Returns
Exceptions
parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
public static ContextRule parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Exceptions
parseFrom(byte[] data)
public static ContextRule parseFrom(byte[] data)
Parameter
Name | Description |
data | byte[]
|
Returns
Exceptions
parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
public static ContextRule parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Exceptions
parseFrom(ByteString data)
public static ContextRule parseFrom(ByteString data)
Parameter
Returns
Exceptions
parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
public static ContextRule parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Exceptions
parseFrom(CodedInputStream input)
public static ContextRule parseFrom(CodedInputStream input)
Parameter
Returns
Exceptions
parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
public static ContextRule parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Exceptions
parseFrom(InputStream input)
public static ContextRule parseFrom(InputStream input)
Parameter
Returns
Exceptions
parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
public static ContextRule parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Exceptions
parseFrom(ByteBuffer data)
public static ContextRule parseFrom(ByteBuffer data)
Parameter
Returns
Exceptions
parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
public static ContextRule parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Exceptions
parser()
public static Parser<ContextRule> parser()
Returns
Methods
equals(Object obj)
public boolean equals(Object obj)
Parameter
Returns
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
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
getDefaultInstanceForType()
public ContextRule getDefaultInstanceForType()
Returns
getParserForType()
public Parser<ContextRule> getParserForType()
Returns
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;
Returns
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;
Returns
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
getSerializedSize()
public int getSerializedSize()
Returns
Overrides
getUnknownFields()
public final UnknownFieldSet getUnknownFields()
Returns
Overrides
hashCode()
Returns
Overrides
internalGetFieldAccessorTable()
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
Overrides
isInitialized()
public final boolean isInitialized()
Returns
Overrides
newBuilderForType()
public ContextRule.Builder newBuilderForType()
Returns
newBuilderForType(GeneratedMessageV3.BuilderParent parent)
protected ContextRule.Builder newBuilderForType(GeneratedMessageV3.BuilderParent parent)
Parameter
Returns
Overrides
newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
protected Object newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
Parameter
Returns
Overrides
toBuilder()
public ContextRule.Builder toBuilder()
Returns
writeTo(CodedOutputStream output)
public void writeTo(CodedOutputStream output)
Parameter
Overrides
Exceptions