Class UpdateExclusionRequest.Builder (3.17.2)

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
Type Description
Descriptor

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public UpdateExclusionRequest.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
UpdateExclusionRequest.Builder
Overrides

build()

public UpdateExclusionRequest build()
Returns
Type Description
UpdateExclusionRequest

buildPartial()

public UpdateExclusionRequest buildPartial()
Returns
Type Description
UpdateExclusionRequest

clear()

public UpdateExclusionRequest.Builder clear()
Returns
Type Description
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
Type Description
UpdateExclusionRequest.Builder

clearField(Descriptors.FieldDescriptor field)

public UpdateExclusionRequest.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
Name Description
field FieldDescriptor
Returns
Type Description
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
Type Description
UpdateExclusionRequest.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

public UpdateExclusionRequest.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
Name Description
oneof OneofDescriptor
Returns
Type Description
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
Type Description
UpdateExclusionRequest.Builder

clone()

public UpdateExclusionRequest.Builder clone()
Returns
Type Description
UpdateExclusionRequest.Builder
Overrides

getDefaultInstanceForType()

public UpdateExclusionRequest getDefaultInstanceForType()
Returns
Type Description
UpdateExclusionRequest

getDescriptorForType()

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

Whether the updateMask field is set.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
Type Description
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
Type Description
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
Name Description
value LogExclusion
Returns
Type Description
UpdateExclusionRequest.Builder

mergeFrom(UpdateExclusionRequest other)

public UpdateExclusionRequest.Builder mergeFrom(UpdateExclusionRequest other)
Parameter
Name Description
other UpdateExclusionRequest
Returns
Type Description
UpdateExclusionRequest.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public UpdateExclusionRequest.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input CodedInputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
UpdateExclusionRequest.Builder
Overrides
Exceptions
Type Description
IOException

mergeFrom(Message other)

public UpdateExclusionRequest.Builder mergeFrom(Message other)
Parameter
Name Description
other Message
Returns
Type Description
UpdateExclusionRequest.Builder
Overrides

mergeUnknownFields(UnknownFieldSet unknownFields)

public final UpdateExclusionRequest.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
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
Name Description
value FieldMask
Returns
Type Description
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
Name Description
value LogExclusion
Returns
Type Description
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
Name Description
builderForValue LogExclusion.Builder
Returns
Type Description
UpdateExclusionRequest.Builder

setField(Descriptors.FieldDescriptor field, Object value)

public UpdateExclusionRequest.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
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
Name Description
value String

The name to set.

Returns
Type Description
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
Name Description
value ByteString

The bytes for name to set.

Returns
Type Description
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
Name Description
field FieldDescriptor
index int
value Object
Returns
Type Description
UpdateExclusionRequest.Builder
Overrides

setUnknownFields(UnknownFieldSet unknownFields)

public final UpdateExclusionRequest.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
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
Name Description
value FieldMask
Returns
Type Description
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
Name Description
builderForValue Builder
Returns
Type Description
UpdateExclusionRequest.Builder