Class RegexValidation.Builder

  • All Implemented Interfaces:
    RegexValidationOrBuilder, com.google.protobuf.Message.Builder, com.google.protobuf.MessageLite.Builder, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, Cloneable
    Enclosing class:
    RegexValidation

    public static final class RegexValidation.Builder
    extends com.google.protobuf.GeneratedMessageV3.Builder<RegexValidation.Builder>
    implements RegexValidationOrBuilder
     Validation based on regular expressions.
     
    Protobuf type google.cloud.dataproc.v1.RegexValidation
    • Method Detail

      • getDescriptor

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

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

        public RegexValidation.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.GeneratedMessageV3.Builder<RegexValidation.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.GeneratedMessageV3.Builder<RegexValidation.Builder>
      • getDefaultInstanceForType

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

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

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

        public RegexValidation.Builder clone()
        Specified by:
        clone in interface com.google.protobuf.Message.Builder
        Specified by:
        clone in interface com.google.protobuf.MessageLite.Builder
        Overrides:
        clone in class com.google.protobuf.GeneratedMessageV3.Builder<RegexValidation.Builder>
      • setField

        public RegexValidation.Builder setField​(com.google.protobuf.Descriptors.FieldDescriptor field,
                                                Object value)
        Specified by:
        setField in interface com.google.protobuf.Message.Builder
        Overrides:
        setField in class com.google.protobuf.GeneratedMessageV3.Builder<RegexValidation.Builder>
      • clearField

        public RegexValidation.Builder clearField​(com.google.protobuf.Descriptors.FieldDescriptor field)
        Specified by:
        clearField in interface com.google.protobuf.Message.Builder
        Overrides:
        clearField in class com.google.protobuf.GeneratedMessageV3.Builder<RegexValidation.Builder>
      • clearOneof

        public RegexValidation.Builder clearOneof​(com.google.protobuf.Descriptors.OneofDescriptor oneof)
        Specified by:
        clearOneof in interface com.google.protobuf.Message.Builder
        Overrides:
        clearOneof in class com.google.protobuf.GeneratedMessageV3.Builder<RegexValidation.Builder>
      • setRepeatedField

        public RegexValidation.Builder setRepeatedField​(com.google.protobuf.Descriptors.FieldDescriptor field,
                                                        int index,
                                                        Object value)
        Specified by:
        setRepeatedField in interface com.google.protobuf.Message.Builder
        Overrides:
        setRepeatedField in class com.google.protobuf.GeneratedMessageV3.Builder<RegexValidation.Builder>
      • addRepeatedField

        public RegexValidation.Builder addRepeatedField​(com.google.protobuf.Descriptors.FieldDescriptor field,
                                                        Object value)
        Specified by:
        addRepeatedField in interface com.google.protobuf.Message.Builder
        Overrides:
        addRepeatedField in class com.google.protobuf.GeneratedMessageV3.Builder<RegexValidation.Builder>
      • mergeFrom

        public RegexValidation.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<RegexValidation.Builder>
      • isInitialized

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

        public RegexValidation.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<RegexValidation.Builder>
        Throws:
        IOException
      • getRegexesList

        public com.google.protobuf.ProtocolStringList getRegexesList()
         Required. RE2 regular expressions used to validate the parameter's value.
         The value must match the regex in its entirety (substring
         matches are not sufficient).
         
        repeated string regexes = 1 [(.google.api.field_behavior) = REQUIRED];
        Specified by:
        getRegexesList in interface RegexValidationOrBuilder
        Returns:
        A list containing the regexes.
      • getRegexesCount

        public int getRegexesCount()
         Required. RE2 regular expressions used to validate the parameter's value.
         The value must match the regex in its entirety (substring
         matches are not sufficient).
         
        repeated string regexes = 1 [(.google.api.field_behavior) = REQUIRED];
        Specified by:
        getRegexesCount in interface RegexValidationOrBuilder
        Returns:
        The count of regexes.
      • getRegexes

        public String getRegexes​(int index)
         Required. RE2 regular expressions used to validate the parameter's value.
         The value must match the regex in its entirety (substring
         matches are not sufficient).
         
        repeated string regexes = 1 [(.google.api.field_behavior) = REQUIRED];
        Specified by:
        getRegexes in interface RegexValidationOrBuilder
        Parameters:
        index - The index of the element to return.
        Returns:
        The regexes at the given index.
      • getRegexesBytes

        public com.google.protobuf.ByteString getRegexesBytes​(int index)
         Required. RE2 regular expressions used to validate the parameter's value.
         The value must match the regex in its entirety (substring
         matches are not sufficient).
         
        repeated string regexes = 1 [(.google.api.field_behavior) = REQUIRED];
        Specified by:
        getRegexesBytes in interface RegexValidationOrBuilder
        Parameters:
        index - The index of the value to return.
        Returns:
        The bytes of the regexes at the given index.
      • setRegexes

        public RegexValidation.Builder setRegexes​(int index,
                                                  String value)
         Required. RE2 regular expressions used to validate the parameter's value.
         The value must match the regex in its entirety (substring
         matches are not sufficient).
         
        repeated string regexes = 1 [(.google.api.field_behavior) = REQUIRED];
        Parameters:
        index - The index to set the value at.
        value - The regexes to set.
        Returns:
        This builder for chaining.
      • addRegexes

        public RegexValidation.Builder addRegexes​(String value)
         Required. RE2 regular expressions used to validate the parameter's value.
         The value must match the regex in its entirety (substring
         matches are not sufficient).
         
        repeated string regexes = 1 [(.google.api.field_behavior) = REQUIRED];
        Parameters:
        value - The regexes to add.
        Returns:
        This builder for chaining.
      • addAllRegexes

        public RegexValidation.Builder addAllRegexes​(Iterable<String> values)
         Required. RE2 regular expressions used to validate the parameter's value.
         The value must match the regex in its entirety (substring
         matches are not sufficient).
         
        repeated string regexes = 1 [(.google.api.field_behavior) = REQUIRED];
        Parameters:
        values - The regexes to add.
        Returns:
        This builder for chaining.
      • clearRegexes

        public RegexValidation.Builder clearRegexes()
         Required. RE2 regular expressions used to validate the parameter's value.
         The value must match the regex in its entirety (substring
         matches are not sufficient).
         
        repeated string regexes = 1 [(.google.api.field_behavior) = REQUIRED];
        Returns:
        This builder for chaining.
      • addRegexesBytes

        public RegexValidation.Builder addRegexesBytes​(com.google.protobuf.ByteString value)
         Required. RE2 regular expressions used to validate the parameter's value.
         The value must match the regex in its entirety (substring
         matches are not sufficient).
         
        repeated string regexes = 1 [(.google.api.field_behavior) = REQUIRED];
        Parameters:
        value - The bytes of the regexes to add.
        Returns:
        This builder for chaining.
      • setUnknownFields

        public final RegexValidation.Builder setUnknownFields​(com.google.protobuf.UnknownFieldSet unknownFields)
        Specified by:
        setUnknownFields in interface com.google.protobuf.Message.Builder
        Overrides:
        setUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<RegexValidation.Builder>
      • mergeUnknownFields

        public final RegexValidation.Builder mergeUnknownFields​(com.google.protobuf.UnknownFieldSet unknownFields)
        Specified by:
        mergeUnknownFields in interface com.google.protobuf.Message.Builder
        Overrides:
        mergeUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<RegexValidation.Builder>