Class CreateExclusionRequest.Builder (3.24.0)

public static final class CreateExclusionRequest.Builder extends GeneratedMessage.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

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

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.

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 GeneratedMessage.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

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

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.