Class Tool.TLSConfig.CACert.Builder

java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessage.Builder<Tool.TLSConfig.CACert.Builder>
com.google.cloud.dialogflow.v2.Tool.TLSConfig.CACert.Builder
All Implemented Interfaces:
Tool.TLSConfig.CACertOrBuilder, com.google.protobuf.Message.Builder, com.google.protobuf.MessageLite.Builder, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, Cloneable
Enclosing class:
Tool.TLSConfig.CACert

public static final class Tool.TLSConfig.CACert.Builder extends com.google.protobuf.GeneratedMessage.Builder<Tool.TLSConfig.CACert.Builder> implements Tool.TLSConfig.CACertOrBuilder
 The CA certificate.
 
Protobuf type google.cloud.dialogflow.v2.Tool.TLSConfig.CACert
  • 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<Tool.TLSConfig.CACert.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<Tool.TLSConfig.CACert.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<Tool.TLSConfig.CACert.Builder>
    • getDefaultInstanceForType

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

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

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

      public Tool.TLSConfig.CACert.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<Tool.TLSConfig.CACert.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<Tool.TLSConfig.CACert.Builder>
    • mergeFrom

      public Tool.TLSConfig.CACert.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<Tool.TLSConfig.CACert.Builder>
      Throws:
      IOException
    • getDisplayName

      public String getDisplayName()
       Required. The name of the allowed custom CA certificates. This
       can be used to disambiguate the custom CA certificates.
       
      string display_name = 1 [(.google.api.field_behavior) = REQUIRED];
      Specified by:
      getDisplayName in interface Tool.TLSConfig.CACertOrBuilder
      Returns:
      The displayName.
    • getDisplayNameBytes

      public com.google.protobuf.ByteString getDisplayNameBytes()
       Required. The name of the allowed custom CA certificates. This
       can be used to disambiguate the custom CA certificates.
       
      string display_name = 1 [(.google.api.field_behavior) = REQUIRED];
      Specified by:
      getDisplayNameBytes in interface Tool.TLSConfig.CACertOrBuilder
      Returns:
      The bytes for displayName.
    • setDisplayName

      public Tool.TLSConfig.CACert.Builder setDisplayName(String value)
       Required. The name of the allowed custom CA certificates. This
       can be used to disambiguate the custom CA certificates.
       
      string display_name = 1 [(.google.api.field_behavior) = REQUIRED];
      Parameters:
      value - The displayName to set.
      Returns:
      This builder for chaining.
    • clearDisplayName

      public Tool.TLSConfig.CACert.Builder clearDisplayName()
       Required. The name of the allowed custom CA certificates. This
       can be used to disambiguate the custom CA certificates.
       
      string display_name = 1 [(.google.api.field_behavior) = REQUIRED];
      Returns:
      This builder for chaining.
    • setDisplayNameBytes

      public Tool.TLSConfig.CACert.Builder setDisplayNameBytes(com.google.protobuf.ByteString value)
       Required. The name of the allowed custom CA certificates. This
       can be used to disambiguate the custom CA certificates.
       
      string display_name = 1 [(.google.api.field_behavior) = REQUIRED];
      Parameters:
      value - The bytes for displayName to set.
      Returns:
      This builder for chaining.
    • getCert

      public com.google.protobuf.ByteString getCert()
       Required. The allowed custom CA certificates (in DER format) for
       HTTPS verification. This overrides the default SSL trust store. If this
       is empty or unspecified, Dialogflow will use Google's default trust
       store to verify certificates. N.B. Make sure the HTTPS server
       certificates are signed with "subject alt name". For instance a
       certificate can be self-signed using the following command,
       ```
       openssl x509 -req -days 200 -in example.com.csr \
       -signkey example.com.key \
       -out example.com.crt \
       -extfile <(printf "\nsubjectAltName='DNS:www.example.com'")
       ```
       
      bytes cert = 2 [(.google.api.field_behavior) = REQUIRED];
      Specified by:
      getCert in interface Tool.TLSConfig.CACertOrBuilder
      Returns:
      The cert.
    • setCert

      public Tool.TLSConfig.CACert.Builder setCert(com.google.protobuf.ByteString value)
       Required. The allowed custom CA certificates (in DER format) for
       HTTPS verification. This overrides the default SSL trust store. If this
       is empty or unspecified, Dialogflow will use Google's default trust
       store to verify certificates. N.B. Make sure the HTTPS server
       certificates are signed with "subject alt name". For instance a
       certificate can be self-signed using the following command,
       ```
       openssl x509 -req -days 200 -in example.com.csr \
       -signkey example.com.key \
       -out example.com.crt \
       -extfile <(printf "\nsubjectAltName='DNS:www.example.com'")
       ```
       
      bytes cert = 2 [(.google.api.field_behavior) = REQUIRED];
      Parameters:
      value - The cert to set.
      Returns:
      This builder for chaining.
    • clearCert

      public Tool.TLSConfig.CACert.Builder clearCert()
       Required. The allowed custom CA certificates (in DER format) for
       HTTPS verification. This overrides the default SSL trust store. If this
       is empty or unspecified, Dialogflow will use Google's default trust
       store to verify certificates. N.B. Make sure the HTTPS server
       certificates are signed with "subject alt name". For instance a
       certificate can be self-signed using the following command,
       ```
       openssl x509 -req -days 200 -in example.com.csr \
       -signkey example.com.key \
       -out example.com.crt \
       -extfile <(printf "\nsubjectAltName='DNS:www.example.com'")
       ```
       
      bytes cert = 2 [(.google.api.field_behavior) = REQUIRED];
      Returns:
      This builder for chaining.