Class UpdateExclusionRequest.Builder (3.16.0)

public static final class UpdateExclusionRequest.Builder extends GeneratedMessageV3.Builder<UpdateExclusionRequest.Builder> implements UpdateExclusionRequestOrBuilder

The parameters to UpdateExclusion.

Protobuf type google.logging.v2.UpdateExclusionRequest

Static Methods

getDescriptor()

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

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public UpdateExclusionRequest build()
Returns
TypeDescription
UpdateExclusionRequest

buildPartial()

public UpdateExclusionRequest buildPartial()
Returns
TypeDescription
UpdateExclusionRequest

clear()

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

clearExclusion()

public UpdateExclusionRequest.Builder clearExclusion()

Required. New values for the existing exclusion. Only the fields specified in update_mask are relevant.

.google.logging.v2.LogExclusion exclusion = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
TypeDescription
UpdateExclusionRequest.Builder

clearField(Descriptors.FieldDescriptor field)

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

clearName()

public UpdateExclusionRequest.Builder clearName()

Required. The resource name of the exclusion to update:

 "projects/[PROJECT_ID]/exclusions/[EXCLUSION_ID]"
 "organizations/[ORGANIZATION_ID]/exclusions/[EXCLUSION_ID]"
 "billingAccounts/[BILLING_ACCOUNT_ID]/exclusions/[EXCLUSION_ID]"
 "folders/[FOLDER_ID]/exclusions/[EXCLUSION_ID]"

For example:

"projects/my-project/exclusions/my-exclusion"

string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }

Returns
TypeDescription
UpdateExclusionRequest.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

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

clearUpdateMask()

public UpdateExclusionRequest.Builder clearUpdateMask()

Required. A non-empty list of fields to change in the existing exclusion. New values for the fields are taken from the corresponding fields in the LogExclusion included in this request. Fields not mentioned in update_mask are not changed and are ignored in the request.

For example, to change the filter and description of an exclusion, specify an update_mask of "filter,description".

.google.protobuf.FieldMask update_mask = 3 [(.google.api.field_behavior) = REQUIRED];

Returns
TypeDescription
UpdateExclusionRequest.Builder

clone()

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

getDefaultInstanceForType()

public UpdateExclusionRequest getDefaultInstanceForType()
Returns
TypeDescription
UpdateExclusionRequest

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
Descriptor
Overrides

getExclusion()

public LogExclusion getExclusion()

Required. New values for the existing exclusion. Only the fields specified in update_mask are relevant.

.google.logging.v2.LogExclusion exclusion = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
TypeDescription
LogExclusion

The exclusion.

getExclusionBuilder()

public LogExclusion.Builder getExclusionBuilder()

Required. New values for the existing exclusion. Only the fields specified in update_mask are relevant.

.google.logging.v2.LogExclusion exclusion = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
TypeDescription
LogExclusion.Builder

getExclusionOrBuilder()

public LogExclusionOrBuilder getExclusionOrBuilder()

Required. New values for the existing exclusion. Only the fields specified in update_mask are relevant.

.google.logging.v2.LogExclusion exclusion = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
TypeDescription
LogExclusionOrBuilder

getName()

public String getName()

Required. The resource name of the exclusion to update:

 "projects/[PROJECT_ID]/exclusions/[EXCLUSION_ID]"
 "organizations/[ORGANIZATION_ID]/exclusions/[EXCLUSION_ID]"
 "billingAccounts/[BILLING_ACCOUNT_ID]/exclusions/[EXCLUSION_ID]"
 "folders/[FOLDER_ID]/exclusions/[EXCLUSION_ID]"

For example:

"projects/my-project/exclusions/my-exclusion"

string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }

Returns
TypeDescription
String

The name.

getNameBytes()

public ByteString getNameBytes()

Required. The resource name of the exclusion to update:

 "projects/[PROJECT_ID]/exclusions/[EXCLUSION_ID]"
 "organizations/[ORGANIZATION_ID]/exclusions/[EXCLUSION_ID]"
 "billingAccounts/[BILLING_ACCOUNT_ID]/exclusions/[EXCLUSION_ID]"
 "folders/[FOLDER_ID]/exclusions/[EXCLUSION_ID]"

For example:

"projects/my-project/exclusions/my-exclusion"

string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }

Returns
TypeDescription
ByteString

The bytes for name.

getUpdateMask()

public FieldMask getUpdateMask()

Required. A non-empty list of fields to change in the existing exclusion. New values for the fields are taken from the corresponding fields in the LogExclusion included in this request. Fields not mentioned in update_mask are not changed and are ignored in the request.

For example, to change the filter and description of an exclusion, specify an update_mask of "filter,description".

.google.protobuf.FieldMask update_mask = 3 [(.google.api.field_behavior) = REQUIRED];

Returns
TypeDescription
FieldMask

The updateMask.

getUpdateMaskBuilder()

public FieldMask.Builder getUpdateMaskBuilder()

Required. A non-empty list of fields to change in the existing exclusion. New values for the fields are taken from the corresponding fields in the LogExclusion included in this request. Fields not mentioned in update_mask are not changed and are ignored in the request.

For example, to change the filter and description of an exclusion, specify an update_mask of "filter,description".

.google.protobuf.FieldMask update_mask = 3 [(.google.api.field_behavior) = REQUIRED];

Returns
TypeDescription
Builder

getUpdateMaskOrBuilder()

public FieldMaskOrBuilder getUpdateMaskOrBuilder()

Required. A non-empty list of fields to change in the existing exclusion. New values for the fields are taken from the corresponding fields in the LogExclusion included in this request. Fields not mentioned in update_mask are not changed and are ignored in the request.

For example, to change the filter and description of an exclusion, specify an update_mask of "filter,description".

.google.protobuf.FieldMask update_mask = 3 [(.google.api.field_behavior) = REQUIRED];

Returns
TypeDescription
FieldMaskOrBuilder

hasExclusion()

public boolean hasExclusion()

Required. New values for the existing exclusion. Only the fields specified in update_mask are relevant.

.google.logging.v2.LogExclusion exclusion = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
TypeDescription
boolean

Whether the exclusion field is set.

hasUpdateMask()

public boolean hasUpdateMask()

Required. A non-empty list of fields to change in the existing exclusion. New values for the fields are taken from the corresponding fields in the LogExclusion included in this request. Fields not mentioned in update_mask are not changed and are ignored in the request.

For example, to change the filter and description of an exclusion, specify an update_mask of "filter,description".

.google.protobuf.FieldMask update_mask = 3 [(.google.api.field_behavior) = REQUIRED];

Returns
TypeDescription
boolean

Whether the updateMask field is set.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

mergeExclusion(LogExclusion value)

public UpdateExclusionRequest.Builder mergeExclusion(LogExclusion value)

Required. New values for the existing exclusion. Only the fields specified in update_mask are relevant.

.google.logging.v2.LogExclusion exclusion = 2 [(.google.api.field_behavior) = REQUIRED];

Parameter
NameDescription
valueLogExclusion
Returns
TypeDescription
UpdateExclusionRequest.Builder

mergeFrom(UpdateExclusionRequest other)

public UpdateExclusionRequest.Builder mergeFrom(UpdateExclusionRequest other)
Parameter
NameDescription
otherUpdateExclusionRequest
Returns
TypeDescription
UpdateExclusionRequest.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

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

mergeUpdateMask(FieldMask value)

public UpdateExclusionRequest.Builder mergeUpdateMask(FieldMask value)

Required. A non-empty list of fields to change in the existing exclusion. New values for the fields are taken from the corresponding fields in the LogExclusion included in this request. Fields not mentioned in update_mask are not changed and are ignored in the request.

For example, to change the filter and description of an exclusion, specify an update_mask of "filter,description".

.google.protobuf.FieldMask update_mask = 3 [(.google.api.field_behavior) = REQUIRED];

Parameter
NameDescription
valueFieldMask
Returns
TypeDescription
UpdateExclusionRequest.Builder

setExclusion(LogExclusion value)

public UpdateExclusionRequest.Builder setExclusion(LogExclusion value)

Required. New values for the existing exclusion. Only the fields specified in update_mask are relevant.

.google.logging.v2.LogExclusion exclusion = 2 [(.google.api.field_behavior) = REQUIRED];

Parameter
NameDescription
valueLogExclusion
Returns
TypeDescription
UpdateExclusionRequest.Builder

setExclusion(LogExclusion.Builder builderForValue)

public UpdateExclusionRequest.Builder setExclusion(LogExclusion.Builder builderForValue)

Required. New values for the existing exclusion. Only the fields specified in update_mask are relevant.

.google.logging.v2.LogExclusion exclusion = 2 [(.google.api.field_behavior) = REQUIRED];

Parameter
NameDescription
builderForValueLogExclusion.Builder
Returns
TypeDescription
UpdateExclusionRequest.Builder

setField(Descriptors.FieldDescriptor field, Object value)

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

setName(String value)

public UpdateExclusionRequest.Builder setName(String value)

Required. The resource name of the exclusion to update:

 "projects/[PROJECT_ID]/exclusions/[EXCLUSION_ID]"
 "organizations/[ORGANIZATION_ID]/exclusions/[EXCLUSION_ID]"
 "billingAccounts/[BILLING_ACCOUNT_ID]/exclusions/[EXCLUSION_ID]"
 "folders/[FOLDER_ID]/exclusions/[EXCLUSION_ID]"

For example:

"projects/my-project/exclusions/my-exclusion"

string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }

Parameter
NameDescription
valueString

The name to set.

Returns
TypeDescription
UpdateExclusionRequest.Builder

This builder for chaining.

setNameBytes(ByteString value)

public UpdateExclusionRequest.Builder setNameBytes(ByteString value)

Required. The resource name of the exclusion to update:

 "projects/[PROJECT_ID]/exclusions/[EXCLUSION_ID]"
 "organizations/[ORGANIZATION_ID]/exclusions/[EXCLUSION_ID]"
 "billingAccounts/[BILLING_ACCOUNT_ID]/exclusions/[EXCLUSION_ID]"
 "folders/[FOLDER_ID]/exclusions/[EXCLUSION_ID]"

For example:

"projects/my-project/exclusions/my-exclusion"

string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }

Parameter
NameDescription
valueByteString

The bytes for name to set.

Returns
TypeDescription
UpdateExclusionRequest.Builder

This builder for chaining.

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

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

setUnknownFields(UnknownFieldSet unknownFields)

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

setUpdateMask(FieldMask value)

public UpdateExclusionRequest.Builder setUpdateMask(FieldMask value)

Required. A non-empty list of fields to change in the existing exclusion. New values for the fields are taken from the corresponding fields in the LogExclusion included in this request. Fields not mentioned in update_mask are not changed and are ignored in the request.

For example, to change the filter and description of an exclusion, specify an update_mask of "filter,description".

.google.protobuf.FieldMask update_mask = 3 [(.google.api.field_behavior) = REQUIRED];

Parameter
NameDescription
valueFieldMask
Returns
TypeDescription
UpdateExclusionRequest.Builder

setUpdateMask(FieldMask.Builder builderForValue)

public UpdateExclusionRequest.Builder setUpdateMask(FieldMask.Builder builderForValue)

Required. A non-empty list of fields to change in the existing exclusion. New values for the fields are taken from the corresponding fields in the LogExclusion included in this request. Fields not mentioned in update_mask are not changed and are ignored in the request.

For example, to change the filter and description of an exclusion, specify an update_mask of "filter,description".

.google.protobuf.FieldMask update_mask = 3 [(.google.api.field_behavior) = REQUIRED];

Parameter
NameDescription
builderForValueBuilder
Returns
TypeDescription
UpdateExclusionRequest.Builder