Class RouterNatLogConfig.Builder

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

public static final class RouterNatLogConfig.Builder extends com.google.protobuf.GeneratedMessage.Builder<RouterNatLogConfig.Builder> implements RouterNatLogConfigOrBuilder
 Configuration of logging on a NAT.
 
Protobuf type google.cloud.compute.v1.RouterNatLogConfig
  • Method Summary

    Modifier and Type
    Method
    Description
     
     
     
    Indicates whether or not to export logs.
    Specify the desired filtering of logs on this NAT.
     
    static final com.google.protobuf.Descriptors.Descriptor
     
    com.google.protobuf.Descriptors.Descriptor
     
    boolean
    Indicates whether or not to export logs.
    Specify the desired filtering of logs on this NAT.
    com.google.protobuf.ByteString
    Specify the desired filtering of logs on this NAT.
    boolean
    Indicates whether or not to export logs.
    boolean
    Specify the desired filtering of logs on this NAT.
    protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
     
    final boolean
     
     
    mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
     
    mergeFrom(com.google.protobuf.Message other)
     
    setEnable(boolean value)
    Indicates whether or not to export logs.
    Specify the desired filtering of logs on this NAT.
    setFilterBytes(com.google.protobuf.ByteString value)
    Specify the desired filtering of logs on this NAT.

    Methods inherited from class com.google.protobuf.GeneratedMessage.Builder

    addRepeatedField, clearField, clearOneof, clone, getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, internalGetMapField, internalGetMapFieldReflection, internalGetMutableMapField, internalGetMutableMapFieldReflection, isClean, markClean, mergeUnknownFields, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, setField, setRepeatedField, setUnknownFields, setUnknownFieldSetBuilder, setUnknownFieldsProto3

    Methods inherited from class com.google.protobuf.AbstractMessage.Builder

    findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toString

    Methods inherited from class com.google.protobuf.AbstractMessageLite.Builder

    addAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, newUninitializedMessageException

    Methods inherited from class java.lang.Object

    equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait

    Methods inherited from interface com.google.protobuf.Message.Builder

    mergeDelimitedFrom, mergeDelimitedFrom

    Methods inherited from interface com.google.protobuf.MessageLite.Builder

    mergeFrom

    Methods inherited from interface com.google.protobuf.MessageOrBuilder

    findInitializationErrors, getAllFields, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
  • 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<RouterNatLogConfig.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<RouterNatLogConfig.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<RouterNatLogConfig.Builder>
    • getDefaultInstanceForType

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

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

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

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

      public RouterNatLogConfig.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<RouterNatLogConfig.Builder>
      Throws:
      IOException
    • hasEnable

      public boolean hasEnable()
       Indicates whether or not to export logs. This is false by default.
       
      optional bool enable = 311764355;
      Specified by:
      hasEnable in interface RouterNatLogConfigOrBuilder
      Returns:
      Whether the enable field is set.
    • getEnable

      public boolean getEnable()
       Indicates whether or not to export logs. This is false by default.
       
      optional bool enable = 311764355;
      Specified by:
      getEnable in interface RouterNatLogConfigOrBuilder
      Returns:
      The enable.
    • setEnable

      public RouterNatLogConfig.Builder setEnable(boolean value)
       Indicates whether or not to export logs. This is false by default.
       
      optional bool enable = 311764355;
      Parameters:
      value - The enable to set.
      Returns:
      This builder for chaining.
    • clearEnable

      public RouterNatLogConfig.Builder clearEnable()
       Indicates whether or not to export logs. This is false by default.
       
      optional bool enable = 311764355;
      Returns:
      This builder for chaining.
    • hasFilter

      public boolean hasFilter()
       Specify the desired filtering of logs on this NAT. If unspecified,
       logs are exported for all connections handled by this NAT.
       This option can take one of the following values:
      
       - ERRORS_ONLY: Export logs only for connection failures.
       - TRANSLATIONS_ONLY: Export logs only for successful
       connections.
       - ALL: Export logs for all connections, successful and
       unsuccessful.
       Check the Filter enum for the list of possible values.
       
      optional string filter = 336120696;
      Specified by:
      hasFilter in interface RouterNatLogConfigOrBuilder
      Returns:
      Whether the filter field is set.
    • getFilter

      public String getFilter()
       Specify the desired filtering of logs on this NAT. If unspecified,
       logs are exported for all connections handled by this NAT.
       This option can take one of the following values:
      
       - ERRORS_ONLY: Export logs only for connection failures.
       - TRANSLATIONS_ONLY: Export logs only for successful
       connections.
       - ALL: Export logs for all connections, successful and
       unsuccessful.
       Check the Filter enum for the list of possible values.
       
      optional string filter = 336120696;
      Specified by:
      getFilter in interface RouterNatLogConfigOrBuilder
      Returns:
      The filter.
    • getFilterBytes

      public com.google.protobuf.ByteString getFilterBytes()
       Specify the desired filtering of logs on this NAT. If unspecified,
       logs are exported for all connections handled by this NAT.
       This option can take one of the following values:
      
       - ERRORS_ONLY: Export logs only for connection failures.
       - TRANSLATIONS_ONLY: Export logs only for successful
       connections.
       - ALL: Export logs for all connections, successful and
       unsuccessful.
       Check the Filter enum for the list of possible values.
       
      optional string filter = 336120696;
      Specified by:
      getFilterBytes in interface RouterNatLogConfigOrBuilder
      Returns:
      The bytes for filter.
    • setFilter

      public RouterNatLogConfig.Builder setFilter(String value)
       Specify the desired filtering of logs on this NAT. If unspecified,
       logs are exported for all connections handled by this NAT.
       This option can take one of the following values:
      
       - ERRORS_ONLY: Export logs only for connection failures.
       - TRANSLATIONS_ONLY: Export logs only for successful
       connections.
       - ALL: Export logs for all connections, successful and
       unsuccessful.
       Check the Filter enum for the list of possible values.
       
      optional string filter = 336120696;
      Parameters:
      value - The filter to set.
      Returns:
      This builder for chaining.
    • clearFilter

      public RouterNatLogConfig.Builder clearFilter()
       Specify the desired filtering of logs on this NAT. If unspecified,
       logs are exported for all connections handled by this NAT.
       This option can take one of the following values:
      
       - ERRORS_ONLY: Export logs only for connection failures.
       - TRANSLATIONS_ONLY: Export logs only for successful
       connections.
       - ALL: Export logs for all connections, successful and
       unsuccessful.
       Check the Filter enum for the list of possible values.
       
      optional string filter = 336120696;
      Returns:
      This builder for chaining.
    • setFilterBytes

      public RouterNatLogConfig.Builder setFilterBytes(com.google.protobuf.ByteString value)
       Specify the desired filtering of logs on this NAT. If unspecified,
       logs are exported for all connections handled by this NAT.
       This option can take one of the following values:
      
       - ERRORS_ONLY: Export logs only for connection failures.
       - TRANSLATIONS_ONLY: Export logs only for successful
       connections.
       - ALL: Export logs for all connections, successful and
       unsuccessful.
       Check the Filter enum for the list of possible values.
       
      optional string filter = 336120696;
      Parameters:
      value - The bytes for filter to set.
      Returns:
      This builder for chaining.