Class CreateExclusionRequest.Builder (3.14.9)

public static final class CreateExclusionRequest.Builder extends GeneratedMessageV3.Builder<CreateExclusionRequest.Builder> implements CreateExclusionRequestOrBuilder

The parameters to CreateExclusion.

Protobuf type google.logging.v2.CreateExclusionRequest

Static Methods

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
Type Description
Descriptor

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public CreateExclusionRequest build()
Returns
Type Description
CreateExclusionRequest

buildPartial()

public CreateExclusionRequest buildPartial()
Returns
Type Description
CreateExclusionRequest

clear()

public CreateExclusionRequest.Builder clear()
Returns
Type Description
CreateExclusionRequest.Builder
Overrides

clearExclusion()

public CreateExclusionRequest.Builder clearExclusion()

Required. The new exclusion, whose name parameter is an exclusion name that is not already used in the parent resource.

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

Returns
Type Description
CreateExclusionRequest.Builder

clearField(Descriptors.FieldDescriptor field)

public CreateExclusionRequest.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
Name Description
field FieldDescriptor
Returns
Type Description
CreateExclusionRequest.Builder
Overrides

clearOneof(Descriptors.OneofDescriptor oneof)

public CreateExclusionRequest.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
Name Description
oneof OneofDescriptor
Returns
Type Description
CreateExclusionRequest.Builder
Overrides

clearParent()

public CreateExclusionRequest.Builder clearParent()

Required. The parent resource in which to create the exclusion: "projects/[PROJECT_ID]" "organizations/[ORGANIZATION_ID]" "billingAccounts/[BILLING_ACCOUNT_ID]" "folders/[FOLDER_ID]" For examples: "projects/my-logging-project" "organizations/123456789"

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

Returns
Type Description
CreateExclusionRequest.Builder

This builder for chaining.

clone()

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

getDefaultInstanceForType()

public CreateExclusionRequest getDefaultInstanceForType()
Returns
Type Description
CreateExclusionRequest

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
Type Description
Descriptor
Overrides

getExclusion()

public LogExclusion getExclusion()

Required. The new exclusion, whose name parameter is an exclusion name that is not already used in the parent resource.

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

Returns
Type Description
LogExclusion

The exclusion.

getExclusionBuilder()

public LogExclusion.Builder getExclusionBuilder()

Required. The new exclusion, whose name parameter is an exclusion name that is not already used in the parent resource.

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

Returns
Type Description
LogExclusion.Builder

getExclusionOrBuilder()

public LogExclusionOrBuilder getExclusionOrBuilder()

Required. The new exclusion, whose name parameter is an exclusion name that is not already used in the parent resource.

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

Returns
Type Description
LogExclusionOrBuilder

getParent()

public String getParent()

Required. The parent resource in which to create the exclusion: "projects/[PROJECT_ID]" "organizations/[ORGANIZATION_ID]" "billingAccounts/[BILLING_ACCOUNT_ID]" "folders/[FOLDER_ID]" For examples: "projects/my-logging-project" "organizations/123456789"

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

Returns
Type Description
String

The parent.

getParentBytes()

public ByteString getParentBytes()

Required. The parent resource in which to create the exclusion: "projects/[PROJECT_ID]" "organizations/[ORGANIZATION_ID]" "billingAccounts/[BILLING_ACCOUNT_ID]" "folders/[FOLDER_ID]" For examples: "projects/my-logging-project" "organizations/123456789"

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

Returns
Type Description
ByteString

The bytes for parent.

hasExclusion()

public boolean hasExclusion()

Required. The new exclusion, whose name parameter is an exclusion name that is not already used in the parent resource.

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

Returns
Type Description
boolean

Whether the exclusion 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 CreateExclusionRequest.Builder mergeExclusion(LogExclusion value)

Required. The new exclusion, whose name parameter is an exclusion name that is not already used in the parent resource.

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

Parameter
Name Description
value LogExclusion
Returns
Type Description
CreateExclusionRequest.Builder

mergeFrom(CreateExclusionRequest other)

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

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

public final CreateExclusionRequest.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
CreateExclusionRequest.Builder
Overrides

setExclusion(LogExclusion value)

public CreateExclusionRequest.Builder setExclusion(LogExclusion value)

Required. The new exclusion, whose name parameter is an exclusion name that is not already used in the parent resource.

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

Parameter
Name Description
value LogExclusion
Returns
Type Description
CreateExclusionRequest.Builder

setExclusion(LogExclusion.Builder builderForValue)

public CreateExclusionRequest.Builder setExclusion(LogExclusion.Builder builderForValue)

Required. The new exclusion, whose name parameter is an exclusion name that is not already used in the parent resource.

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

Parameter
Name Description
builderForValue LogExclusion.Builder
Returns
Type Description
CreateExclusionRequest.Builder

setField(Descriptors.FieldDescriptor field, Object value)

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

setParent(String value)

public CreateExclusionRequest.Builder setParent(String value)

Required. The parent resource in which to create the exclusion: "projects/[PROJECT_ID]" "organizations/[ORGANIZATION_ID]" "billingAccounts/[BILLING_ACCOUNT_ID]" "folders/[FOLDER_ID]" For examples: "projects/my-logging-project" "organizations/123456789"

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

Parameter
Name Description
value String

The parent to set.

Returns
Type Description
CreateExclusionRequest.Builder

This builder for chaining.

setParentBytes(ByteString value)

public CreateExclusionRequest.Builder setParentBytes(ByteString value)

Required. The parent resource in which to create the exclusion: "projects/[PROJECT_ID]" "organizations/[ORGANIZATION_ID]" "billingAccounts/[BILLING_ACCOUNT_ID]" "folders/[FOLDER_ID]" For examples: "projects/my-logging-project" "organizations/123456789"

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

Parameter
Name Description
value ByteString

The bytes for parent to set.

Returns
Type Description
CreateExclusionRequest.Builder

This builder for chaining.

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

public CreateExclusionRequest.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
Name Description
field FieldDescriptor
index int
value Object
Returns
Type Description
CreateExclusionRequest.Builder
Overrides

setUnknownFields(UnknownFieldSet unknownFields)

public final CreateExclusionRequest.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
CreateExclusionRequest.Builder
Overrides