Class ValidationMessage.Builder (0.48.0)

public static final class ValidationMessage.Builder extends GeneratedMessageV3.Builder<ValidationMessage.Builder> implements ValidationMessageOrBuilder

Agent/flow validation message.

Protobuf type google.cloud.dialogflow.cx.v3beta1.ValidationMessage

Static Methods

getDescriptor()

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

Methods

addAllResourceNames(Iterable<? extends ResourceName> values)

public ValidationMessage.Builder addAllResourceNames(Iterable<? extends ResourceName> values)

The resource names of the resources where the message is found.

repeated .google.cloud.dialogflow.cx.v3beta1.ResourceName resource_names = 6;

Parameter
Name Description
values Iterable<? extends com.google.cloud.dialogflow.cx.v3beta1.ResourceName>
Returns
Type Description
ValidationMessage.Builder

addAllResources(Iterable<String> values) (deprecated)

public ValidationMessage.Builder addAllResources(Iterable<String> values)

Deprecated. google.cloud.dialogflow.cx.v3beta1.ValidationMessage.resources is deprecated. See google/cloud/dialogflow/cx/v3beta1/validation_message.proto;l=96

The names of the resources where the message is found.

repeated string resources = 2 [deprecated = true];

Parameter
Name Description
values Iterable<String>

The resources to add.

Returns
Type Description
ValidationMessage.Builder

This builder for chaining.

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

addResourceNames(ResourceName value)

public ValidationMessage.Builder addResourceNames(ResourceName value)

The resource names of the resources where the message is found.

repeated .google.cloud.dialogflow.cx.v3beta1.ResourceName resource_names = 6;

Parameter
Name Description
value ResourceName
Returns
Type Description
ValidationMessage.Builder

addResourceNames(ResourceName.Builder builderForValue)

public ValidationMessage.Builder addResourceNames(ResourceName.Builder builderForValue)

The resource names of the resources where the message is found.

repeated .google.cloud.dialogflow.cx.v3beta1.ResourceName resource_names = 6;

Parameter
Name Description
builderForValue ResourceName.Builder
Returns
Type Description
ValidationMessage.Builder

addResourceNames(int index, ResourceName value)

public ValidationMessage.Builder addResourceNames(int index, ResourceName value)

The resource names of the resources where the message is found.

repeated .google.cloud.dialogflow.cx.v3beta1.ResourceName resource_names = 6;

Parameters
Name Description
index int
value ResourceName
Returns
Type Description
ValidationMessage.Builder

addResourceNames(int index, ResourceName.Builder builderForValue)

public ValidationMessage.Builder addResourceNames(int index, ResourceName.Builder builderForValue)

The resource names of the resources where the message is found.

repeated .google.cloud.dialogflow.cx.v3beta1.ResourceName resource_names = 6;

Parameters
Name Description
index int
builderForValue ResourceName.Builder
Returns
Type Description
ValidationMessage.Builder

addResourceNamesBuilder()

public ResourceName.Builder addResourceNamesBuilder()

The resource names of the resources where the message is found.

repeated .google.cloud.dialogflow.cx.v3beta1.ResourceName resource_names = 6;

Returns
Type Description
ResourceName.Builder

addResourceNamesBuilder(int index)

public ResourceName.Builder addResourceNamesBuilder(int index)

The resource names of the resources where the message is found.

repeated .google.cloud.dialogflow.cx.v3beta1.ResourceName resource_names = 6;

Parameter
Name Description
index int
Returns
Type Description
ResourceName.Builder

addResources(String value) (deprecated)

public ValidationMessage.Builder addResources(String value)

Deprecated. google.cloud.dialogflow.cx.v3beta1.ValidationMessage.resources is deprecated. See google/cloud/dialogflow/cx/v3beta1/validation_message.proto;l=96

The names of the resources where the message is found.

repeated string resources = 2 [deprecated = true];

Parameter
Name Description
value String

The resources to add.

Returns
Type Description
ValidationMessage.Builder

This builder for chaining.

addResourcesBytes(ByteString value) (deprecated)

public ValidationMessage.Builder addResourcesBytes(ByteString value)

Deprecated. google.cloud.dialogflow.cx.v3beta1.ValidationMessage.resources is deprecated. See google/cloud/dialogflow/cx/v3beta1/validation_message.proto;l=96

The names of the resources where the message is found.

repeated string resources = 2 [deprecated = true];

Parameter
Name Description
value ByteString

The bytes of the resources to add.

Returns
Type Description
ValidationMessage.Builder

This builder for chaining.

build()

public ValidationMessage build()
Returns
Type Description
ValidationMessage

buildPartial()

public ValidationMessage buildPartial()
Returns
Type Description
ValidationMessage

clear()

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

clearDetail()

public ValidationMessage.Builder clearDetail()

The message detail.

string detail = 4;

Returns
Type Description
ValidationMessage.Builder

This builder for chaining.

clearField(Descriptors.FieldDescriptor field)

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

clearOneof(Descriptors.OneofDescriptor oneof)

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

clearResourceNames()

public ValidationMessage.Builder clearResourceNames()

The resource names of the resources where the message is found.

repeated .google.cloud.dialogflow.cx.v3beta1.ResourceName resource_names = 6;

Returns
Type Description
ValidationMessage.Builder

clearResourceType()

public ValidationMessage.Builder clearResourceType()

The type of the resources where the message is found.

.google.cloud.dialogflow.cx.v3beta1.ValidationMessage.ResourceType resource_type = 1;

Returns
Type Description
ValidationMessage.Builder

This builder for chaining.

clearResources() (deprecated)

public ValidationMessage.Builder clearResources()

Deprecated. google.cloud.dialogflow.cx.v3beta1.ValidationMessage.resources is deprecated. See google/cloud/dialogflow/cx/v3beta1/validation_message.proto;l=96

The names of the resources where the message is found.

repeated string resources = 2 [deprecated = true];

Returns
Type Description
ValidationMessage.Builder

This builder for chaining.

clearSeverity()

public ValidationMessage.Builder clearSeverity()

Indicates the severity of the message.

.google.cloud.dialogflow.cx.v3beta1.ValidationMessage.Severity severity = 3;

Returns
Type Description
ValidationMessage.Builder

This builder for chaining.

clone()

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

getDefaultInstanceForType()

public ValidationMessage getDefaultInstanceForType()
Returns
Type Description
ValidationMessage

getDescriptorForType()

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

getDetail()

public String getDetail()

The message detail.

string detail = 4;

Returns
Type Description
String

The detail.

getDetailBytes()

public ByteString getDetailBytes()

The message detail.

string detail = 4;

Returns
Type Description
ByteString

The bytes for detail.

getResourceNames(int index)

public ResourceName getResourceNames(int index)

The resource names of the resources where the message is found.

repeated .google.cloud.dialogflow.cx.v3beta1.ResourceName resource_names = 6;

Parameter
Name Description
index int
Returns
Type Description
ResourceName

getResourceNamesBuilder(int index)

public ResourceName.Builder getResourceNamesBuilder(int index)

The resource names of the resources where the message is found.

repeated .google.cloud.dialogflow.cx.v3beta1.ResourceName resource_names = 6;

Parameter
Name Description
index int
Returns
Type Description
ResourceName.Builder

getResourceNamesBuilderList()

public List<ResourceName.Builder> getResourceNamesBuilderList()

The resource names of the resources where the message is found.

repeated .google.cloud.dialogflow.cx.v3beta1.ResourceName resource_names = 6;

Returns
Type Description
List<Builder>

getResourceNamesCount()

public int getResourceNamesCount()

The resource names of the resources where the message is found.

repeated .google.cloud.dialogflow.cx.v3beta1.ResourceName resource_names = 6;

Returns
Type Description
int

getResourceNamesList()

public List<ResourceName> getResourceNamesList()

The resource names of the resources where the message is found.

repeated .google.cloud.dialogflow.cx.v3beta1.ResourceName resource_names = 6;

Returns
Type Description
List<ResourceName>

getResourceNamesOrBuilder(int index)

public ResourceNameOrBuilder getResourceNamesOrBuilder(int index)

The resource names of the resources where the message is found.

repeated .google.cloud.dialogflow.cx.v3beta1.ResourceName resource_names = 6;

Parameter
Name Description
index int
Returns
Type Description
ResourceNameOrBuilder

getResourceNamesOrBuilderList()

public List<? extends ResourceNameOrBuilder> getResourceNamesOrBuilderList()

The resource names of the resources where the message is found.

repeated .google.cloud.dialogflow.cx.v3beta1.ResourceName resource_names = 6;

Returns
Type Description
List<? extends com.google.cloud.dialogflow.cx.v3beta1.ResourceNameOrBuilder>

getResourceType()

public ValidationMessage.ResourceType getResourceType()

The type of the resources where the message is found.

.google.cloud.dialogflow.cx.v3beta1.ValidationMessage.ResourceType resource_type = 1;

Returns
Type Description
ValidationMessage.ResourceType

The resourceType.

getResourceTypeValue()

public int getResourceTypeValue()

The type of the resources where the message is found.

.google.cloud.dialogflow.cx.v3beta1.ValidationMessage.ResourceType resource_type = 1;

Returns
Type Description
int

The enum numeric value on the wire for resourceType.

getResources(int index) (deprecated)

public String getResources(int index)

Deprecated. google.cloud.dialogflow.cx.v3beta1.ValidationMessage.resources is deprecated. See google/cloud/dialogflow/cx/v3beta1/validation_message.proto;l=96

The names of the resources where the message is found.

repeated string resources = 2 [deprecated = true];

Parameter
Name Description
index int

The index of the element to return.

Returns
Type Description
String

The resources at the given index.

getResourcesBytes(int index) (deprecated)

public ByteString getResourcesBytes(int index)

Deprecated. google.cloud.dialogflow.cx.v3beta1.ValidationMessage.resources is deprecated. See google/cloud/dialogflow/cx/v3beta1/validation_message.proto;l=96

The names of the resources where the message is found.

repeated string resources = 2 [deprecated = true];

Parameter
Name Description
index int

The index of the value to return.

Returns
Type Description
ByteString

The bytes of the resources at the given index.

getResourcesCount() (deprecated)

public int getResourcesCount()

Deprecated. google.cloud.dialogflow.cx.v3beta1.ValidationMessage.resources is deprecated. See google/cloud/dialogflow/cx/v3beta1/validation_message.proto;l=96

The names of the resources where the message is found.

repeated string resources = 2 [deprecated = true];

Returns
Type Description
int

The count of resources.

getResourcesList() (deprecated)

public ProtocolStringList getResourcesList()

Deprecated. google.cloud.dialogflow.cx.v3beta1.ValidationMessage.resources is deprecated. See google/cloud/dialogflow/cx/v3beta1/validation_message.proto;l=96

The names of the resources where the message is found.

repeated string resources = 2 [deprecated = true];

Returns
Type Description
ProtocolStringList

A list containing the resources.

getSeverity()

public ValidationMessage.Severity getSeverity()

Indicates the severity of the message.

.google.cloud.dialogflow.cx.v3beta1.ValidationMessage.Severity severity = 3;

Returns
Type Description
ValidationMessage.Severity

The severity.

getSeverityValue()

public int getSeverityValue()

Indicates the severity of the message.

.google.cloud.dialogflow.cx.v3beta1.ValidationMessage.Severity severity = 3;

Returns
Type Description
int

The enum numeric value on the wire for severity.

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(ValidationMessage other)

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

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

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

removeResourceNames(int index)

public ValidationMessage.Builder removeResourceNames(int index)

The resource names of the resources where the message is found.

repeated .google.cloud.dialogflow.cx.v3beta1.ResourceName resource_names = 6;

Parameter
Name Description
index int
Returns
Type Description
ValidationMessage.Builder

setDetail(String value)

public ValidationMessage.Builder setDetail(String value)

The message detail.

string detail = 4;

Parameter
Name Description
value String

The detail to set.

Returns
Type Description
ValidationMessage.Builder

This builder for chaining.

setDetailBytes(ByteString value)

public ValidationMessage.Builder setDetailBytes(ByteString value)

The message detail.

string detail = 4;

Parameter
Name Description
value ByteString

The bytes for detail to set.

Returns
Type Description
ValidationMessage.Builder

This builder for chaining.

setField(Descriptors.FieldDescriptor field, Object value)

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

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

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

setResourceNames(int index, ResourceName value)

public ValidationMessage.Builder setResourceNames(int index, ResourceName value)

The resource names of the resources where the message is found.

repeated .google.cloud.dialogflow.cx.v3beta1.ResourceName resource_names = 6;

Parameters
Name Description
index int
value ResourceName
Returns
Type Description
ValidationMessage.Builder

setResourceNames(int index, ResourceName.Builder builderForValue)

public ValidationMessage.Builder setResourceNames(int index, ResourceName.Builder builderForValue)

The resource names of the resources where the message is found.

repeated .google.cloud.dialogflow.cx.v3beta1.ResourceName resource_names = 6;

Parameters
Name Description
index int
builderForValue ResourceName.Builder
Returns
Type Description
ValidationMessage.Builder

setResourceType(ValidationMessage.ResourceType value)

public ValidationMessage.Builder setResourceType(ValidationMessage.ResourceType value)

The type of the resources where the message is found.

.google.cloud.dialogflow.cx.v3beta1.ValidationMessage.ResourceType resource_type = 1;

Parameter
Name Description
value ValidationMessage.ResourceType

The resourceType to set.

Returns
Type Description
ValidationMessage.Builder

This builder for chaining.

setResourceTypeValue(int value)

public ValidationMessage.Builder setResourceTypeValue(int value)

The type of the resources where the message is found.

.google.cloud.dialogflow.cx.v3beta1.ValidationMessage.ResourceType resource_type = 1;

Parameter
Name Description
value int

The enum numeric value on the wire for resourceType to set.

Returns
Type Description
ValidationMessage.Builder

This builder for chaining.

setResources(int index, String value) (deprecated)

public ValidationMessage.Builder setResources(int index, String value)

Deprecated. google.cloud.dialogflow.cx.v3beta1.ValidationMessage.resources is deprecated. See google/cloud/dialogflow/cx/v3beta1/validation_message.proto;l=96

The names of the resources where the message is found.

repeated string resources = 2 [deprecated = true];

Parameters
Name Description
index int

The index to set the value at.

value String

The resources to set.

Returns
Type Description
ValidationMessage.Builder

This builder for chaining.

setSeverity(ValidationMessage.Severity value)

public ValidationMessage.Builder setSeverity(ValidationMessage.Severity value)

Indicates the severity of the message.

.google.cloud.dialogflow.cx.v3beta1.ValidationMessage.Severity severity = 3;

Parameter
Name Description
value ValidationMessage.Severity

The severity to set.

Returns
Type Description
ValidationMessage.Builder

This builder for chaining.

setSeverityValue(int value)

public ValidationMessage.Builder setSeverityValue(int value)

Indicates the severity of the message.

.google.cloud.dialogflow.cx.v3beta1.ValidationMessage.Severity severity = 3;

Parameter
Name Description
value int

The enum numeric value on the wire for severity to set.

Returns
Type Description
ValidationMessage.Builder

This builder for chaining.

setUnknownFields(UnknownFieldSet unknownFields)

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