Class ValidationMessage.Builder

java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessage.Builder<ValidationMessage.Builder>
com.google.cloud.dialogflow.cx.v3beta1.ValidationMessage.Builder
All Implemented Interfaces:
ValidationMessageOrBuilder, com.google.protobuf.Message.Builder, com.google.protobuf.MessageLite.Builder, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, Cloneable
Enclosing class:
ValidationMessage

public static final class ValidationMessage.Builder extends com.google.protobuf.GeneratedMessage.Builder<ValidationMessage.Builder> implements ValidationMessageOrBuilder
 Agent/flow validation message.
 
Protobuf type google.cloud.dialogflow.cx.v3beta1.ValidationMessage
  • Method Details

    • getDescriptor

      public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
    • internalGetFieldAccessorTable

      protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()
      Specified by:
      internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessage.Builder<ValidationMessage.Builder>
    • clear

      public ValidationMessage.Builder clear()
      Specified by:
      clear in interface com.google.protobuf.Message.Builder
      Specified by:
      clear in interface com.google.protobuf.MessageLite.Builder
      Overrides:
      clear in class com.google.protobuf.GeneratedMessage.Builder<ValidationMessage.Builder>
    • getDescriptorForType

      public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
      Specified by:
      getDescriptorForType in interface com.google.protobuf.Message.Builder
      Specified by:
      getDescriptorForType in interface com.google.protobuf.MessageOrBuilder
      Overrides:
      getDescriptorForType in class com.google.protobuf.GeneratedMessage.Builder<ValidationMessage.Builder>
    • getDefaultInstanceForType

      public ValidationMessage getDefaultInstanceForType()
      Specified by:
      getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuilder
      Specified by:
      getDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilder
    • build

      public ValidationMessage build()
      Specified by:
      build in interface com.google.protobuf.Message.Builder
      Specified by:
      build in interface com.google.protobuf.MessageLite.Builder
    • buildPartial

      public ValidationMessage buildPartial()
      Specified by:
      buildPartial in interface com.google.protobuf.Message.Builder
      Specified by:
      buildPartial in interface com.google.protobuf.MessageLite.Builder
    • mergeFrom

      public ValidationMessage.Builder mergeFrom(com.google.protobuf.Message other)
      Specified by:
      mergeFrom in interface com.google.protobuf.Message.Builder
      Overrides:
      mergeFrom in class com.google.protobuf.AbstractMessage.Builder<ValidationMessage.Builder>
    • mergeFrom

      public ValidationMessage.Builder mergeFrom(ValidationMessage other)
    • isInitialized

      public final boolean isInitialized()
      Specified by:
      isInitialized in interface com.google.protobuf.MessageLiteOrBuilder
      Overrides:
      isInitialized in class com.google.protobuf.GeneratedMessage.Builder<ValidationMessage.Builder>
    • mergeFrom

      public ValidationMessage.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
      Specified by:
      mergeFrom in interface com.google.protobuf.Message.Builder
      Specified by:
      mergeFrom in interface com.google.protobuf.MessageLite.Builder
      Overrides:
      mergeFrom in class com.google.protobuf.AbstractMessage.Builder<ValidationMessage.Builder>
      Throws:
      IOException
    • getResourceTypeValue

      public int getResourceTypeValue()
       The type of the resources where the message is found.
       
      .google.cloud.dialogflow.cx.v3beta1.ValidationMessage.ResourceType resource_type = 1;
      Specified by:
      getResourceTypeValue in interface ValidationMessageOrBuilder
      Returns:
      The enum numeric value on the wire for resourceType.
    • setResourceTypeValue

      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;
      Parameters:
      value - The enum numeric value on the wire for resourceType to set.
      Returns:
      This builder for chaining.
    • 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;
      Specified by:
      getResourceType in interface ValidationMessageOrBuilder
      Returns:
      The resourceType.
    • setResourceType

       The type of the resources where the message is found.
       
      .google.cloud.dialogflow.cx.v3beta1.ValidationMessage.ResourceType resource_type = 1;
      Parameters:
      value - The resourceType to set.
      Returns:
      This builder for chaining.
    • 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:
      This builder for chaining.
    • getResourcesList

      @Deprecated public com.google.protobuf.ProtocolStringList getResourcesList()
      Deprecated.
      google.cloud.dialogflow.cx.v3beta1.ValidationMessage.resources is deprecated. See google/cloud/dialogflow/cx/v3beta1/validation_message.proto;l=95
       The names of the resources where the message is found.
       
      repeated string resources = 2 [deprecated = true];
      Specified by:
      getResourcesList in interface ValidationMessageOrBuilder
      Returns:
      A list containing the resources.
    • 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=95
       The names of the resources where the message is found.
       
      repeated string resources = 2 [deprecated = true];
      Specified by:
      getResourcesCount in interface ValidationMessageOrBuilder
      Returns:
      The count of resources.
    • getResources

      @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=95
       The names of the resources where the message is found.
       
      repeated string resources = 2 [deprecated = true];
      Specified by:
      getResources in interface ValidationMessageOrBuilder
      Parameters:
      index - The index of the element to return.
      Returns:
      The resources at the given index.
    • getResourcesBytes

      @Deprecated public com.google.protobuf.ByteString getResourcesBytes(int index)
      Deprecated.
      google.cloud.dialogflow.cx.v3beta1.ValidationMessage.resources is deprecated. See google/cloud/dialogflow/cx/v3beta1/validation_message.proto;l=95
       The names of the resources where the message is found.
       
      repeated string resources = 2 [deprecated = true];
      Specified by:
      getResourcesBytes in interface ValidationMessageOrBuilder
      Parameters:
      index - The index of the value to return.
      Returns:
      The bytes of the resources at the given index.
    • setResources

      @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=95
       The names of the resources where the message is found.
       
      repeated string resources = 2 [deprecated = true];
      Parameters:
      index - The index to set the value at.
      value - The resources to set.
      Returns:
      This builder for chaining.
    • addResources

      @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=95
       The names of the resources where the message is found.
       
      repeated string resources = 2 [deprecated = true];
      Parameters:
      value - The resources to add.
      Returns:
      This builder for chaining.
    • addAllResources

      @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=95
       The names of the resources where the message is found.
       
      repeated string resources = 2 [deprecated = true];
      Parameters:
      values - The resources to add.
      Returns:
      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=95
       The names of the resources where the message is found.
       
      repeated string resources = 2 [deprecated = true];
      Returns:
      This builder for chaining.
    • addResourcesBytes

      @Deprecated public ValidationMessage.Builder addResourcesBytes(com.google.protobuf.ByteString value)
      Deprecated.
      google.cloud.dialogflow.cx.v3beta1.ValidationMessage.resources is deprecated. See google/cloud/dialogflow/cx/v3beta1/validation_message.proto;l=95
       The names of the resources where the message is found.
       
      repeated string resources = 2 [deprecated = true];
      Parameters:
      value - The bytes of the resources to add.
      Returns:
      This builder for chaining.
    • 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;
      Specified by:
      getResourceNamesList in interface ValidationMessageOrBuilder
    • 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;
      Specified by:
      getResourceNamesCount in interface ValidationMessageOrBuilder
    • getResourceNames

      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;
      Specified by:
      getResourceNames in interface ValidationMessageOrBuilder
    • setResourceNames

      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;
    • setResourceNames

      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;
    • addResourceNames

      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;
    • addResourceNames

      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;
    • addResourceNames

      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;
    • addResourceNames

      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;
    • addAllResourceNames

      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;
    • 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;
    • removeResourceNames

      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;
    • getResourceNamesBuilder

      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;
    • getResourceNamesOrBuilder

      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;
      Specified by:
      getResourceNamesOrBuilder in interface ValidationMessageOrBuilder
    • 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;
      Specified by:
      getResourceNamesOrBuilderList in interface ValidationMessageOrBuilder
    • 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;
    • addResourceNamesBuilder

      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;
    • 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;
    • getSeverityValue

      public int getSeverityValue()
       Indicates the severity of the message.
       
      .google.cloud.dialogflow.cx.v3beta1.ValidationMessage.Severity severity = 3;
      Specified by:
      getSeverityValue in interface ValidationMessageOrBuilder
      Returns:
      The enum numeric value on the wire for severity.
    • setSeverityValue

      public ValidationMessage.Builder setSeverityValue(int value)
       Indicates the severity of the message.
       
      .google.cloud.dialogflow.cx.v3beta1.ValidationMessage.Severity severity = 3;
      Parameters:
      value - The enum numeric value on the wire for severity to set.
      Returns:
      This builder for chaining.
    • getSeverity

      public ValidationMessage.Severity getSeverity()
       Indicates the severity of the message.
       
      .google.cloud.dialogflow.cx.v3beta1.ValidationMessage.Severity severity = 3;
      Specified by:
      getSeverity in interface ValidationMessageOrBuilder
      Returns:
      The severity.
    • setSeverity

       Indicates the severity of the message.
       
      .google.cloud.dialogflow.cx.v3beta1.ValidationMessage.Severity severity = 3;
      Parameters:
      value - The severity to set.
      Returns:
      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:
      This builder for chaining.
    • getDetail

      public String getDetail()
       The message detail.
       
      string detail = 4;
      Specified by:
      getDetail in interface ValidationMessageOrBuilder
      Returns:
      The detail.
    • getDetailBytes

      public com.google.protobuf.ByteString getDetailBytes()
       The message detail.
       
      string detail = 4;
      Specified by:
      getDetailBytes in interface ValidationMessageOrBuilder
      Returns:
      The bytes for detail.
    • setDetail

      public ValidationMessage.Builder setDetail(String value)
       The message detail.
       
      string detail = 4;
      Parameters:
      value - The detail to set.
      Returns:
      This builder for chaining.
    • clearDetail

      public ValidationMessage.Builder clearDetail()
       The message detail.
       
      string detail = 4;
      Returns:
      This builder for chaining.
    • setDetailBytes

      public ValidationMessage.Builder setDetailBytes(com.google.protobuf.ByteString value)
       The message detail.
       
      string detail = 4;
      Parameters:
      value - The bytes for detail to set.
      Returns:
      This builder for chaining.