Class ExamplesRestrictionsNamespace.Builder

java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessage.Builder<ExamplesRestrictionsNamespace.Builder>
com.google.cloud.aiplatform.v1.ExamplesRestrictionsNamespace.Builder
All Implemented Interfaces:
ExamplesRestrictionsNamespaceOrBuilder, com.google.protobuf.Message.Builder, com.google.protobuf.MessageLite.Builder, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, Cloneable
Enclosing class:
ExamplesRestrictionsNamespace

public static final class ExamplesRestrictionsNamespace.Builder extends com.google.protobuf.GeneratedMessage.Builder<ExamplesRestrictionsNamespace.Builder> implements ExamplesRestrictionsNamespaceOrBuilder
 Restrictions namespace for example-based explanations overrides.
 
Protobuf type google.cloud.aiplatform.v1.ExamplesRestrictionsNamespace
  • 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<ExamplesRestrictionsNamespace.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<ExamplesRestrictionsNamespace.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<ExamplesRestrictionsNamespace.Builder>
    • getDefaultInstanceForType

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

      Specified by:
      build in interface com.google.protobuf.Message.Builder
      Specified by:
      build in interface com.google.protobuf.MessageLite.Builder
    • buildPartial

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

      public ExamplesRestrictionsNamespace.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<ExamplesRestrictionsNamespace.Builder>
    • mergeFrom

    • isInitialized

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

      public ExamplesRestrictionsNamespace.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<ExamplesRestrictionsNamespace.Builder>
      Throws:
      IOException
    • getNamespaceName

      public String getNamespaceName()
       The namespace name.
       
      string namespace_name = 1;
      Specified by:
      getNamespaceName in interface ExamplesRestrictionsNamespaceOrBuilder
      Returns:
      The namespaceName.
    • getNamespaceNameBytes

      public com.google.protobuf.ByteString getNamespaceNameBytes()
       The namespace name.
       
      string namespace_name = 1;
      Specified by:
      getNamespaceNameBytes in interface ExamplesRestrictionsNamespaceOrBuilder
      Returns:
      The bytes for namespaceName.
    • setNamespaceName

      public ExamplesRestrictionsNamespace.Builder setNamespaceName(String value)
       The namespace name.
       
      string namespace_name = 1;
      Parameters:
      value - The namespaceName to set.
      Returns:
      This builder for chaining.
    • clearNamespaceName

      public ExamplesRestrictionsNamespace.Builder clearNamespaceName()
       The namespace name.
       
      string namespace_name = 1;
      Returns:
      This builder for chaining.
    • setNamespaceNameBytes

      public ExamplesRestrictionsNamespace.Builder setNamespaceNameBytes(com.google.protobuf.ByteString value)
       The namespace name.
       
      string namespace_name = 1;
      Parameters:
      value - The bytes for namespaceName to set.
      Returns:
      This builder for chaining.
    • getAllowList

      public com.google.protobuf.ProtocolStringList getAllowList()
       The list of allowed tags.
       
      repeated string allow = 2;
      Specified by:
      getAllowList in interface ExamplesRestrictionsNamespaceOrBuilder
      Returns:
      A list containing the allow.
    • getAllowCount

      public int getAllowCount()
       The list of allowed tags.
       
      repeated string allow = 2;
      Specified by:
      getAllowCount in interface ExamplesRestrictionsNamespaceOrBuilder
      Returns:
      The count of allow.
    • getAllow

      public String getAllow(int index)
       The list of allowed tags.
       
      repeated string allow = 2;
      Specified by:
      getAllow in interface ExamplesRestrictionsNamespaceOrBuilder
      Parameters:
      index - The index of the element to return.
      Returns:
      The allow at the given index.
    • getAllowBytes

      public com.google.protobuf.ByteString getAllowBytes(int index)
       The list of allowed tags.
       
      repeated string allow = 2;
      Specified by:
      getAllowBytes in interface ExamplesRestrictionsNamespaceOrBuilder
      Parameters:
      index - The index of the value to return.
      Returns:
      The bytes of the allow at the given index.
    • setAllow

      public ExamplesRestrictionsNamespace.Builder setAllow(int index, String value)
       The list of allowed tags.
       
      repeated string allow = 2;
      Parameters:
      index - The index to set the value at.
      value - The allow to set.
      Returns:
      This builder for chaining.
    • addAllow

       The list of allowed tags.
       
      repeated string allow = 2;
      Parameters:
      value - The allow to add.
      Returns:
      This builder for chaining.
    • addAllAllow

       The list of allowed tags.
       
      repeated string allow = 2;
      Parameters:
      values - The allow to add.
      Returns:
      This builder for chaining.
    • clearAllow

       The list of allowed tags.
       
      repeated string allow = 2;
      Returns:
      This builder for chaining.
    • addAllowBytes

      public ExamplesRestrictionsNamespace.Builder addAllowBytes(com.google.protobuf.ByteString value)
       The list of allowed tags.
       
      repeated string allow = 2;
      Parameters:
      value - The bytes of the allow to add.
      Returns:
      This builder for chaining.
    • getDenyList

      public com.google.protobuf.ProtocolStringList getDenyList()
       The list of deny tags.
       
      repeated string deny = 3;
      Specified by:
      getDenyList in interface ExamplesRestrictionsNamespaceOrBuilder
      Returns:
      A list containing the deny.
    • getDenyCount

      public int getDenyCount()
       The list of deny tags.
       
      repeated string deny = 3;
      Specified by:
      getDenyCount in interface ExamplesRestrictionsNamespaceOrBuilder
      Returns:
      The count of deny.
    • getDeny

      public String getDeny(int index)
       The list of deny tags.
       
      repeated string deny = 3;
      Specified by:
      getDeny in interface ExamplesRestrictionsNamespaceOrBuilder
      Parameters:
      index - The index of the element to return.
      Returns:
      The deny at the given index.
    • getDenyBytes

      public com.google.protobuf.ByteString getDenyBytes(int index)
       The list of deny tags.
       
      repeated string deny = 3;
      Specified by:
      getDenyBytes in interface ExamplesRestrictionsNamespaceOrBuilder
      Parameters:
      index - The index of the value to return.
      Returns:
      The bytes of the deny at the given index.
    • setDeny

      public ExamplesRestrictionsNamespace.Builder setDeny(int index, String value)
       The list of deny tags.
       
      repeated string deny = 3;
      Parameters:
      index - The index to set the value at.
      value - The deny to set.
      Returns:
      This builder for chaining.
    • addDeny

       The list of deny tags.
       
      repeated string deny = 3;
      Parameters:
      value - The deny to add.
      Returns:
      This builder for chaining.
    • addAllDeny

       The list of deny tags.
       
      repeated string deny = 3;
      Parameters:
      values - The deny to add.
      Returns:
      This builder for chaining.
    • clearDeny

       The list of deny tags.
       
      repeated string deny = 3;
      Returns:
      This builder for chaining.
    • addDenyBytes

      public ExamplesRestrictionsNamespace.Builder addDenyBytes(com.google.protobuf.ByteString value)
       The list of deny tags.
       
      repeated string deny = 3;
      Parameters:
      value - The bytes of the deny to add.
      Returns:
      This builder for chaining.