Class ContextRule (2.10.0)

Stay organized with collections Save and categorize content based on your preferences.
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
TypeDescription
int

ALLOWED_RESPONSE_EXTENSIONS_FIELD_NUMBER

public static final int ALLOWED_RESPONSE_EXTENSIONS_FIELD_NUMBER
Field Value
TypeDescription
int

PROVIDED_FIELD_NUMBER

public static final int PROVIDED_FIELD_NUMBER
Field Value
TypeDescription
int

REQUESTED_FIELD_NUMBER

public static final int REQUESTED_FIELD_NUMBER
Field Value
TypeDescription
int

SELECTOR_FIELD_NUMBER

public static final int SELECTOR_FIELD_NUMBER
Field Value
TypeDescription
int

Static Methods

getDefaultInstance()

public static ContextRule getDefaultInstance()
Returns
TypeDescription
ContextRule

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
TypeDescription
Descriptor

newBuilder()

public static ContextRule.Builder newBuilder()
Returns
TypeDescription
ContextRule.Builder

newBuilder(ContextRule prototype)

public static ContextRule.Builder newBuilder(ContextRule prototype)
Parameter
NameDescription
prototypeContextRule
Returns
TypeDescription
ContextRule.Builder

parseDelimitedFrom(InputStream input)

public static ContextRule parseDelimitedFrom(InputStream input)
Parameter
NameDescription
inputInputStream
Returns
TypeDescription
ContextRule
Exceptions
TypeDescription
IOException

parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static ContextRule parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
ContextRule
Exceptions
TypeDescription
IOException

parseFrom(byte[] data)

public static ContextRule parseFrom(byte[] data)
Parameter
NameDescription
databyte[]
Returns
TypeDescription
ContextRule
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)

public static ContextRule parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
databyte[]
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
ContextRule
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(ByteString data)

public static ContextRule parseFrom(ByteString data)
Parameter
NameDescription
dataByteString
Returns
TypeDescription
ContextRule
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)

public static ContextRule parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
dataByteString
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
ContextRule
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(CodedInputStream input)

public static ContextRule parseFrom(CodedInputStream input)
Parameter
NameDescription
inputCodedInputStream
Returns
TypeDescription
ContextRule
Exceptions
TypeDescription
IOException

parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public static ContextRule parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputCodedInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
ContextRule
Exceptions
TypeDescription
IOException

parseFrom(InputStream input)

public static ContextRule parseFrom(InputStream input)
Parameter
NameDescription
inputInputStream
Returns
TypeDescription
ContextRule
Exceptions
TypeDescription
IOException

parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static ContextRule parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescri