Class ServiceContextFilter (0.123.0-beta)

public final class ServiceContextFilter extends GeneratedMessageV3 implements ServiceContextFilterOrBuilder

Specifies criteria for filtering a subset of service contexts. The fields in the filter correspond to the fields in ServiceContext. Only exact, case-sensitive matches are supported. If a field is unset or empty, it matches arbitrary values.

Protobuf type google.devtools.clouderrorreporting.v1beta1.ServiceContextFilter

Static Fields

RESOURCE_TYPE_FIELD_NUMBER

public static final int RESOURCE_TYPE_FIELD_NUMBER
Field Value
TypeDescription
int

SERVICE_FIELD_NUMBER

public static final int SERVICE_FIELD_NUMBER
Field Value
TypeDescription
int

VERSION_FIELD_NUMBER

public static final int VERSION_FIELD_NUMBER
Field Value
TypeDescription
int

Static Methods

getDefaultInstance()

public static ServiceContextFilter getDefaultInstance()
Returns
TypeDescription
ServiceContextFilter

getDescriptor()

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

newBuilder()

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

newBuilder(ServiceContextFilter prototype)

public static ServiceContextFilter.Builder newBuilder(ServiceContextFilter prototype)
Parameter
NameDescription
prototypeServiceContextFilter
Returns
TypeDescription
ServiceContextFilter.Builder

parseDelimitedFrom(InputStream input)

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

parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

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

parseFrom(byte[] data)

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

parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)

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

parseFrom(ByteString data)

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

parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)

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

parseFrom(CodedInputStream input)

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

parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

parseFrom(InputStream input)

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

parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

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

parseFrom(ByteBuffer data)

public static ServiceContextFilter parseFrom(ByteBuffer data)
Parameter
NameDescription
dataByteBuffer
Returns
TypeDescription
ServiceContextFilter
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)

public static ServiceContextFilter parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
dataByteBuffer
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
ServiceContextFilter
Exceptions
TypeDescription
InvalidProtocolBufferException

parser()

public static Parser<ServiceContextFilter> parser()
Returns
TypeDescription
Parser<ServiceContextFilter>

Methods

equals(Object obj)

public boolean equals(Object obj)
Parameter
NameDescription
objObject
Returns
TypeDescription
boolean
Overrides

getDefaultInstanceForType()

public ServiceContextFilter getDefaultInstanceForType()
Returns
TypeDescription
ServiceContextFilter

getParserForType()

public Parser<ServiceContextFilter> getParserForType()
Returns
TypeDescription
Parser<ServiceContextFilter>
Overrides

getResourceType()

public String getResourceType()

Optional. The exact value to match against ServiceContext.resource_type.

string resource_type = 4 [(.google.api.field_behavior) = OPTIONAL];

Returns
TypeDescription
String

The resourceType.

getResourceTypeBytes()

public ByteString getResourceTypeBytes()

Optional. The exact value to match against ServiceContext.resource_type.

string resource_type = 4 [(.google.api.field_behavior) = OPTIONAL];

Returns
TypeDescription
ByteString

The bytes for resourceType.

getSerializedSize()

public int getSerializedSize()
Returns
TypeDescription
int
Overrides

getService()

public String getService()

Optional. The exact value to match against ServiceContext.service.

string service = 2 [(.google.api.field_behavior) = OPTIONAL];

Returns
TypeDescription
String

The service.

getServiceBytes()

public ByteString getServiceBytes()

Optional. The exact value to match against ServiceContext.service.

string service = 2 [(.google.api.field_behavior) = OPTIONAL];

Returns
TypeDescription
ByteString

The bytes for service.

getUnknownFields()

public final UnknownFieldSet getUnknownFields()
Returns
TypeDescription
UnknownFieldSet
Overrides

getVersion()

public String getVersion()

Optional. The exact value to match against ServiceContext.version.

string version = 3 [(.google.api.field_behavior) = OPTIONAL];

Returns
TypeDescription
String

The version.

getVersionBytes()

public ByteString getVersionBytes()

Optional. The exact value to match against ServiceContext.version.

string version = 3 [(.google.api.field_behavior) = OPTIONAL];

Returns
TypeDescription
ByteString

The bytes for version.

hashCode()

public int hashCode()
Returns
TypeDescription
int
Overrides

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

newBuilderForType()

public ServiceContextFilter.Builder newBuilderForType()
Returns
TypeDescription
ServiceContextFilter.Builder

newBuilderForType(GeneratedMessageV3.BuilderParent parent)

protected ServiceContextFilter.Builder newBuilderForType(GeneratedMessageV3.BuilderParent parent)
Parameter
NameDescription
parentBuilderParent
Returns
TypeDescription
ServiceContextFilter.Builder
Overrides

newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)

protected Object newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
Parameter
NameDescription
unusedUnusedPrivateParameter
Returns
TypeDescription
Object
Overrides

toBuilder()

public ServiceContextFilter.Builder toBuilder()
Returns
TypeDescription
ServiceContextFilter.Builder

writeTo(CodedOutputStream output)

public void writeTo(CodedOutputStream output)
Parameter
NameDescription
outputCodedOutputStream
Overrides Exceptions
TypeDescription
IOException