Class ServiceContextFilter.Builder (0.148.0-beta)

public static final class ServiceContextFilter.Builder extends GeneratedMessageV3.Builder<ServiceContextFilter.Builder> 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 Methods

getDescriptor()

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

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public ServiceContextFilter.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
ServiceContextFilter.Builder
Overrides

build()

public ServiceContextFilter build()
Returns
TypeDescription
ServiceContextFilter

buildPartial()

public ServiceContextFilter buildPartial()
Returns
TypeDescription
ServiceContextFilter

clear()

public ServiceContextFilter.Builder clear()
Returns
TypeDescription
ServiceContextFilter.Builder
Overrides

clearField(Descriptors.FieldDescriptor field)

public ServiceContextFilter.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
NameDescription
fieldFieldDescriptor
Returns
TypeDescription
ServiceContextFilter.Builder
Overrides

clearOneof(Descriptors.OneofDescriptor oneof)

public ServiceContextFilter.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
NameDescription
oneofOneofDescriptor
Returns
TypeDescription
ServiceContextFilter.Builder
Overrides

clearResourceType()

public ServiceContextFilter.Builder clearResourceType()

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

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

Returns
TypeDescription
ServiceContextFilter.Builder

This builder for chaining.

clearService()

public ServiceContextFilter.Builder clearService()

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

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

Returns
TypeDescription
ServiceContextFilter.Builder

This builder for chaining.

clearVersion()

public ServiceContextFilter.Builder clearVersion()

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

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

Returns
TypeDescription
ServiceContextFilter.Builder

This builder for chaining.

clone()

public ServiceContextFilter.Builder clone()
Returns
TypeDescription
ServiceContextFilter.Builder
Overrides

getDefaultInstanceForType()

public ServiceContextFilter getDefaultInstanceForType()
Returns
TypeDescription
ServiceContextFilter

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
Descriptor
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.

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.

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.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

mergeFrom(ServiceContextFilter other)

public ServiceContextFilter.Builder mergeFrom(ServiceContextFilter other)
Parameter
NameDescription
otherServiceContextFilter
Returns
TypeDescription
ServiceContextFilter.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public ServiceContextFilter.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputCodedInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
ServiceContextFilter.Builder
Overrides
Exceptions
TypeDescription
IOException

mergeFrom(Message other)

public ServiceContextFilter.Builder mergeFrom(Message other)
Parameter
NameDescription
otherMessage
Returns
TypeDescription
ServiceContextFilter.Builder
Overrides

mergeUnknownFields(UnknownFieldSet unknownFields)

public final ServiceContextFilter.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
ServiceContextFilter.Builder
Overrides

setField(Descriptors.FieldDescriptor field, Object value)

public ServiceContextFilter.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
ServiceContextFilter.Builder
Overrides

setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)

public ServiceContextFilter.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
NameDescription
fieldFieldDescriptor
indexint
valueObject
Returns
TypeDescription
ServiceContextFilter.Builder
Overrides

setResourceType(String value)

public ServiceContextFilter.Builder setResourceType(String value)

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

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

Parameter
NameDescription
valueString

The resourceType to set.

Returns
TypeDescription
ServiceContextFilter.Builder

This builder for chaining.

setResourceTypeBytes(ByteString value)

public ServiceContextFilter.Builder setResourceTypeBytes(ByteString value)

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

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

Parameter
NameDescription
valueByteString

The bytes for resourceType to set.

Returns
TypeDescription
ServiceContextFilter.Builder

This builder for chaining.

setService(String value)

public ServiceContextFilter.Builder setService(String value)

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

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

Parameter
NameDescription
valueString

The service to set.

Returns
TypeDescription
ServiceContextFilter.Builder

This builder for chaining.

setServiceBytes(ByteString value)

public ServiceContextFilter.Builder setServiceBytes(ByteString value)

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

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

Parameter
NameDescription
valueByteString

The bytes for service to set.

Returns
TypeDescription
ServiceContextFilter.Builder

This builder for chaining.

setUnknownFields(UnknownFieldSet unknownFields)

public final ServiceContextFilter.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
ServiceContextFilter.Builder
Overrides

setVersion(String value)

public ServiceContextFilter.Builder setVersion(String value)

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

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

Parameter
NameDescription
valueString

The version to set.

Returns
TypeDescription
ServiceContextFilter.Builder

This builder for chaining.

setVersionBytes(ByteString value)

public ServiceContextFilter.Builder setVersionBytes(ByteString value)

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

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

Parameter
NameDescription
valueByteString

The bytes for version to set.

Returns
TypeDescription
ServiceContextFilter.Builder

This builder for chaining.