Class CreateAnalysisRuleRequest.Builder (2.54.0)

public static final class CreateAnalysisRuleRequest.Builder extends GeneratedMessageV3.Builder<CreateAnalysisRuleRequest.Builder> implements CreateAnalysisRuleRequestOrBuilder

The request to create a analysis rule. analysis_rule_id will be generated by the server.

Protobuf type google.cloud.contactcenterinsights.v1.CreateAnalysisRuleRequest

Static Methods

getDescriptor()

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

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public CreateAnalysisRuleRequest build()
Returns
Type Description
CreateAnalysisRuleRequest

buildPartial()

public CreateAnalysisRuleRequest buildPartial()
Returns
Type Description
CreateAnalysisRuleRequest

clear()

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

clearAnalysisRule()

public CreateAnalysisRuleRequest.Builder clearAnalysisRule()

Required. The analysis rule resource to create.

.google.cloud.contactcenterinsights.v1.AnalysisRule analysis_rule = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
CreateAnalysisRuleRequest.Builder

clearField(Descriptors.FieldDescriptor field)

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

clearOneof(Descriptors.OneofDescriptor oneof)

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

clearParent()

public CreateAnalysisRuleRequest.Builder clearParent()

Required. The parent resource of the analysis rule. Required. The location to create a analysis rule for. Format: projects/<Project ID>/locations/<Location ID> or projects/<Project Number>/locations/<Location ID>

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

Returns
Type Description
CreateAnalysisRuleRequest.Builder

This builder for chaining.

clone()

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

getAnalysisRule()

public AnalysisRule getAnalysisRule()

Required. The analysis rule resource to create.

.google.cloud.contactcenterinsights.v1.AnalysisRule analysis_rule = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
AnalysisRule

The analysisRule.

getAnalysisRuleBuilder()

public AnalysisRule.Builder getAnalysisRuleBuilder()

Required. The analysis rule resource to create.

.google.cloud.contactcenterinsights.v1.AnalysisRule analysis_rule = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
AnalysisRule.Builder

getAnalysisRuleOrBuilder()

public AnalysisRuleOrBuilder getAnalysisRuleOrBuilder()

Required. The analysis rule resource to create.

.google.cloud.contactcenterinsights.v1.AnalysisRule analysis_rule = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
AnalysisRuleOrBuilder

getDefaultInstanceForType()

public CreateAnalysisRuleRequest getDefaultInstanceForType()
Returns
Type Description
CreateAnalysisRuleRequest

getDescriptorForType()

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

getParent()

public String getParent()

Required. The parent resource of the analysis rule. Required. The location to create a analysis rule for. Format: projects/<Project ID>/locations/<Location ID> or projects/<Project Number>/locations/<Location ID>

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 of the analysis rule. Required. The location to create a analysis rule for. Format: projects/<Project ID>/locations/<Location ID> or projects/<Project Number>/locations/<Location ID>

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

Returns
Type Description
ByteString

The bytes for parent.

hasAnalysisRule()

public boolean hasAnalysisRule()

Required. The analysis rule resource to create.

.google.cloud.contactcenterinsights.v1.AnalysisRule analysis_rule = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
boolean

Whether the analysisRule field is set.

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeAnalysisRule(AnalysisRule value)

public CreateAnalysisRuleRequest.Builder mergeAnalysisRule(AnalysisRule value)

Required. The analysis rule resource to create.

.google.cloud.contactcenterinsights.v1.AnalysisRule analysis_rule = 2 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
value AnalysisRule
Returns
Type Description
CreateAnalysisRuleRequest.Builder

mergeFrom(CreateAnalysisRuleRequest other)

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

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

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

setAnalysisRule(AnalysisRule value)

public CreateAnalysisRuleRequest.Builder setAnalysisRule(AnalysisRule value)

Required. The analysis rule resource to create.

.google.cloud.contactcenterinsights.v1.AnalysisRule analysis_rule = 2 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
value AnalysisRule
Returns
Type Description
CreateAnalysisRuleRequest.Builder

setAnalysisRule(AnalysisRule.Builder builderForValue)

public CreateAnalysisRuleRequest.Builder setAnalysisRule(AnalysisRule.Builder builderForValue)

Required. The analysis rule resource to create.

.google.cloud.contactcenterinsights.v1.AnalysisRule analysis_rule = 2 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
builderForValue AnalysisRule.Builder
Returns
Type Description
CreateAnalysisRuleRequest.Builder

setField(Descriptors.FieldDescriptor field, Object value)

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

setParent(String value)

public CreateAnalysisRuleRequest.Builder setParent(String value)

Required. The parent resource of the analysis rule. Required. The location to create a analysis rule for. Format: projects/<Project ID>/locations/<Location ID> or projects/<Project Number>/locations/<Location ID>

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

Parameter
Name Description
value String

The parent to set.

Returns
Type Description
CreateAnalysisRuleRequest.Builder

This builder for chaining.

setParentBytes(ByteString value)

public CreateAnalysisRuleRequest.Builder setParentBytes(ByteString value)

Required. The parent resource of the analysis rule. Required. The location to create a analysis rule for. Format: projects/<Project ID>/locations/<Location ID> or projects/<Project Number>/locations/<Location ID>

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
CreateAnalysisRuleRequest.Builder

This builder for chaining.

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

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

setUnknownFields(UnknownFieldSet unknownFields)

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