Class CreateExclusionRequest.Builder (3.5.3)

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

The parameters to CreateExclusion.

Protobuf type google.logging.v2.CreateExclusionRequest

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public CreateExclusionRequest build()
Returns
TypeDescription
CreateExclusionRequest

buildPartial()

public CreateExclusionRequest buildPartial()
Returns
TypeDescription
CreateExclusionRequest

clear()

public CreateExclusionRequest.Builder clear()
Returns
TypeDescription
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
TypeDescription
CreateExclusionRequest.Builder

clearField(Descriptors.FieldDescriptor field)

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

clearOneof(Descriptors.OneofDescriptor oneof)

public CreateExclusionRequest.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
NameDescription
oneofOneofDescriptor
Returns
TypeDescription
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]" Examples: "projects/my-logging-project", "organizations/123456789".

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

Returns
TypeDescription
CreateExclusionRequest.Builder

This builder for chaining.

clone()

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

getDefaultInstanceForType()

public CreateExclusionRequest getDefaultInstanceForType()
Returns
TypeDescription
CreateExclusionRequest

getDescriptor()

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

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
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]" Examples: "projects/my-logging-project", "organizations/123456789".

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

Returns
TypeDescription
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]" Examples: "projects/my-logging-project", "organizations/123456789".

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

Returns
TypeDescription
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
TypeDescription
boolean

Whether the exclusion 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 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
NameDescription
valueLogExclusion
Returns
TypeDescription
CreateExclusionRequest.Builder

mergeFrom(CreateExclusionRequest other)

public CreateExclusionRequest.Builder mergeFrom(CreateExclusionRequest other)
Parameter
NameDescription
otherCreateExclusionRequest
Returns
TypeDescription
CreateExclusionRequest.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

public final CreateExclusionRequest.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
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
NameDescription
valueLogExclusion
Returns
TypeDescription
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
NameDescription
builderForValueLogExclusion.Builder
Returns
TypeDescription
CreateExclusionRequest.Builder

setField(Descriptors.FieldDescriptor field, Object value)

public CreateExclusionRequest.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
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]" Examples: "projects/my-logging-project", "organizations/123456789".

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

Parameter
NameDescription
valueString

The parent to set.

Returns
TypeDescription
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]" Examples: "projects/my-logging-project", "organizations/123456789".

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

Parameter
NameDescription
valueByteString

The bytes for parent to set.

Returns
TypeDescription
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
NameDescription
fieldFieldDescriptor
indexint
valueObject
Returns
TypeDescription
CreateExclusionRequest.Builder
Overrides

setUnknownFields(UnknownFieldSet unknownFields)

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