Class ValidationMessage.Builder (0.14.1)

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
TypeDescription
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
NameDescription
valuesIterable<? extends com.google.cloud.dialogflow.cx.v3beta1.ResourceName>
Returns
TypeDescription
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=93

The names of the resources where the message is found.

repeated string resources = 2 [deprecated = true];

Parameter
NameDescription
valuesIterable<String>

The resources to add.

Returns
TypeDescription
ValidationMessage.Builder

This builder for chaining.

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public ValidationMessage.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
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
NameDescription
valueResourceName
Returns
TypeDescription
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
NameDescription
builderForValueResourceName.Builder
Returns
TypeDescription
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
NameDescription
indexint
valueResourceName
Returns
TypeDescription
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
NameDescription
indexint
builderForValueResourceName.Builder
Returns
TypeDescription
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
TypeDescription
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
NameDescription
indexint
Returns
TypeDescription
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=93

The names of the resources where the message is found.

repeated string resources = 2 [deprecated = true];

Parameter
NameDescription
valueString

The resources to add.

Returns
TypeDescription
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=93

The names of the resources where the message is found.

repeated string resources = 2 [deprecated = true];

Parameter
NameDescription
valueByteString

The bytes of the resources to add.

Returns
TypeDescription
ValidationMessage.Builder

This builder for chaining.

build()

public ValidationMessage build()
Returns
TypeDescription
ValidationMessage

buildPartial()

public ValidationMessage buildPartial()
Returns
TypeDescription
ValidationMessage

clear()

public ValidationMessage.Builder clear()
Returns
TypeDescription
ValidationMessage.Builder
Overrides

clearDetail()

public ValidationMessage.Builder clearDetail()

The message detail.

string detail = 4;

Returns
TypeDescription
ValidationMessage.Builder

This builder for chaining.

clearField(Descriptors.FieldDescriptor field)

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

clearOneof(Descriptors.OneofDescriptor oneof)

public ValidationMessage.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
NameDescription
oneofOneofDescriptor
Returns
TypeDescription
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
TypeDescription
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
TypeDescription
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=93

The names of the resources where the message is found.

repeated string resources = 2 [deprecated = true];

Returns
TypeDescription
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
TypeDescription
ValidationMessage.Builder

This builder for chaining.

clone()

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

getDefaultInstanceForType()

public ValidationMessage getDefaultInstanceForType()
Returns
TypeDescription
ValidationMessage

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
Descriptor
Overrides

getDetail()

public String getDetail()

The message detail.

string detail = 4;

Returns
TypeDescription
String

The detail.

getDetailBytes()

public ByteString getDetailBytes()

The message detail.

string detail = 4;

Returns
TypeDescription
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
NameDescription
indexint
Returns
TypeDescription
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
NameDescription
indexint
Returns
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
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
NameDescription
indexint
Returns
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
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=93

The names of the resources where the message is found.

repeated string resources = 2 [deprecated = true];

Parameter
NameDescription
indexint

The index of the element to return.

Returns
TypeDescription
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=93

The names of the resources where the message is found.

repeated string resources = 2 [deprecated = true];

Parameter
NameDescription
indexint

The index of the value to return.

Returns
TypeDescription
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=93

The names of the resources where the message is found.

repeated string resources = 2 [deprecated = true];

Returns
TypeDescription
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=93

The names of the resources where the message is found.

repeated string resources = 2 [deprecated = true];

Returns
TypeDescription
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
TypeDescription
ValidationMessage.Severity

The severity.

getSeverityValue()

public int getSeverityValue()

Indicates the severity of the message.

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

Returns
TypeDescription
int

The enum numeric value on the wire for severity.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

mergeFrom(ValidationMessage other)

public ValidationMessage.Builder mergeFrom(ValidationMessage other)
Parameter
NameDescription
otherValidationMessage
Returns
TypeDescription
ValidationMessage.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

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

setDetail(String value)

public ValidationMessage.Builder setDetail(String value)

The message detail.

string detail = 4;

Parameter
NameDescription
valueString

The detail to set.

Returns
TypeDescription
ValidationMessage.Builder

This builder for chaining.

setDetailBytes(ByteString value)

public ValidationMessage.Builder setDetailBytes(ByteString value)

The message detail.

string detail = 4;

Parameter
NameDescription
valueByteString

The bytes for detail to set.

Returns
TypeDescription
ValidationMessage.Builder

This builder for chaining.

setField(Descriptors.FieldDescriptor field, Object value)

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

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

public ValidationMessage.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
NameDescription
fieldFieldDescriptor
indexint
valueObject
Returns
TypeDescription
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
NameDescription
indexint
valueResourceName
Returns
TypeDescription
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
NameDescription
indexint
builderForValueResourceName.Builder
Returns
TypeDescription
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
NameDescription
valueValidationMessage.ResourceType

The resourceType to set.

Returns
TypeDescription
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
NameDescription
valueint

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

Returns
TypeDescription
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=93

The names of the resources where the message is found.

repeated string resources = 2 [deprecated = true];

Parameters
NameDescription
indexint

The index to set the value at.

valueString

The resources to set.

Returns
TypeDescription
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
NameDescription
valueValidationMessage.Severity

The severity to set.

Returns
TypeDescription
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
NameDescription
valueint

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

Returns
TypeDescription
ValidationMessage.Builder

This builder for chaining.

setUnknownFields(UnknownFieldSet unknownFields)

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