Class TransferTypes.LoggingConfig.Builder

java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessage.Builder<TransferTypes.LoggingConfig.Builder>
com.google.storagetransfer.v1.proto.TransferTypes.LoggingConfig.Builder
All Implemented Interfaces:
com.google.protobuf.Message.Builder, com.google.protobuf.MessageLite.Builder, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, TransferTypes.LoggingConfigOrBuilder, Cloneable
Enclosing class:
TransferTypes.LoggingConfig

public static final class TransferTypes.LoggingConfig.Builder extends com.google.protobuf.GeneratedMessage.Builder<TransferTypes.LoggingConfig.Builder> implements TransferTypes.LoggingConfigOrBuilder
 Specifies the logging behavior for transfer operations.

 Logs can be sent to Cloud Logging for all transfer types. See
 [Read transfer
 logs](https://cloud.google.com/storage-transfer/docs/read-transfer-logs) for
 details.
 
Protobuf type google.storagetransfer.v1.LoggingConfig
  • 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<TransferTypes.LoggingConfig.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<TransferTypes.LoggingConfig.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<TransferTypes.LoggingConfig.Builder>
    • getDefaultInstanceForType

      public TransferTypes.LoggingConfig 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 TransferTypes.LoggingConfig buildPartial()
      Specified by:
      buildPartial in interface com.google.protobuf.Message.Builder
      Specified by:
      buildPartial in interface com.google.protobuf.MessageLite.Builder
    • mergeFrom

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

      public TransferTypes.LoggingConfig.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<TransferTypes.LoggingConfig.Builder>
      Throws:
      IOException
    • getLogActionsList

      public List<TransferTypes.LoggingConfig.LoggableAction> getLogActionsList()
       Specifies the actions to be logged. If empty, no logs are generated.
       
      repeated .google.storagetransfer.v1.LoggingConfig.LoggableAction log_actions = 1;
      Specified by:
      getLogActionsList in interface TransferTypes.LoggingConfigOrBuilder
      Returns:
      A list containing the logActions.
    • getLogActionsCount

      public int getLogActionsCount()
       Specifies the actions to be logged. If empty, no logs are generated.
       
      repeated .google.storagetransfer.v1.LoggingConfig.LoggableAction log_actions = 1;
      Specified by:
      getLogActionsCount in interface TransferTypes.LoggingConfigOrBuilder
      Returns:
      The count of logActions.
    • getLogActions

      public TransferTypes.LoggingConfig.LoggableAction getLogActions(int index)
       Specifies the actions to be logged. If empty, no logs are generated.
       
      repeated .google.storagetransfer.v1.LoggingConfig.LoggableAction log_actions = 1;
      Specified by:
      getLogActions in interface TransferTypes.LoggingConfigOrBuilder
      Parameters:
      index - The index of the element to return.
      Returns:
      The logActions at the given index.
    • setLogActions

       Specifies the actions to be logged. If empty, no logs are generated.
       
      repeated .google.storagetransfer.v1.LoggingConfig.LoggableAction log_actions = 1;
      Parameters:
      index - The index to set the value at.
      value - The logActions to set.
      Returns:
      This builder for chaining.
    • addLogActions

       Specifies the actions to be logged. If empty, no logs are generated.
       
      repeated .google.storagetransfer.v1.LoggingConfig.LoggableAction log_actions = 1;
      Parameters:
      value - The logActions to add.
      Returns:
      This builder for chaining.
    • addAllLogActions

       Specifies the actions to be logged. If empty, no logs are generated.
       
      repeated .google.storagetransfer.v1.LoggingConfig.LoggableAction log_actions = 1;
      Parameters:
      values - The logActions to add.
      Returns:
      This builder for chaining.
    • clearLogActions

      public TransferTypes.LoggingConfig.Builder clearLogActions()
       Specifies the actions to be logged. If empty, no logs are generated.
       
      repeated .google.storagetransfer.v1.LoggingConfig.LoggableAction log_actions = 1;
      Returns:
      This builder for chaining.
    • getLogActionsValueList

      public List<Integer> getLogActionsValueList()
       Specifies the actions to be logged. If empty, no logs are generated.
       
      repeated .google.storagetransfer.v1.LoggingConfig.LoggableAction log_actions = 1;
      Specified by:
      getLogActionsValueList in interface TransferTypes.LoggingConfigOrBuilder
      Returns:
      A list containing the enum numeric values on the wire for logActions.
    • getLogActionsValue

      public int getLogActionsValue(int index)
       Specifies the actions to be logged. If empty, no logs are generated.
       
      repeated .google.storagetransfer.v1.LoggingConfig.LoggableAction log_actions = 1;
      Specified by:
      getLogActionsValue in interface TransferTypes.LoggingConfigOrBuilder
      Parameters:
      index - The index of the value to return.
      Returns:
      The enum numeric value on the wire of logActions at the given index.
    • setLogActionsValue

      public TransferTypes.LoggingConfig.Builder setLogActionsValue(int index, int value)
       Specifies the actions to be logged. If empty, no logs are generated.
       
      repeated .google.storagetransfer.v1.LoggingConfig.LoggableAction log_actions = 1;
      Parameters:
      index - The index to set the value at.
      value - The enum numeric value on the wire for logActions to set.
      Returns:
      This builder for chaining.
    • addLogActionsValue

      public TransferTypes.LoggingConfig.Builder addLogActionsValue(int value)
       Specifies the actions to be logged. If empty, no logs are generated.
       
      repeated .google.storagetransfer.v1.LoggingConfig.LoggableAction log_actions = 1;
      Parameters:
      value - The enum numeric value on the wire for logActions to add.
      Returns:
      This builder for chaining.
    • addAllLogActionsValue

      public TransferTypes.LoggingConfig.Builder addAllLogActionsValue(Iterable<Integer> values)
       Specifies the actions to be logged. If empty, no logs are generated.
       
      repeated .google.storagetransfer.v1.LoggingConfig.LoggableAction log_actions = 1;
      Parameters:
      values - The enum numeric values on the wire for logActions to add.
      Returns:
      This builder for chaining.
    • getLogActionStatesList

      public List<TransferTypes.LoggingConfig.LoggableActionState> getLogActionStatesList()
       States in which `log_actions` are logged. If empty, no logs are generated.
       
      repeated .google.storagetransfer.v1.LoggingConfig.LoggableActionState log_action_states = 2;
      Specified by:
      getLogActionStatesList in interface TransferTypes.LoggingConfigOrBuilder
      Returns:
      A list containing the logActionStates.
    • getLogActionStatesCount

      public int getLogActionStatesCount()
       States in which `log_actions` are logged. If empty, no logs are generated.
       
      repeated .google.storagetransfer.v1.LoggingConfig.LoggableActionState log_action_states = 2;
      Specified by:
      getLogActionStatesCount in interface TransferTypes.LoggingConfigOrBuilder
      Returns:
      The count of logActionStates.
    • getLogActionStates

      public TransferTypes.LoggingConfig.LoggableActionState getLogActionStates(int index)
       States in which `log_actions` are logged. If empty, no logs are generated.
       
      repeated .google.storagetransfer.v1.LoggingConfig.LoggableActionState log_action_states = 2;
      Specified by:
      getLogActionStates in interface TransferTypes.LoggingConfigOrBuilder
      Parameters:
      index - The index of the element to return.
      Returns:
      The logActionStates at the given index.
    • setLogActionStates

       States in which `log_actions` are logged. If empty, no logs are generated.
       
      repeated .google.storagetransfer.v1.LoggingConfig.LoggableActionState log_action_states = 2;
      Parameters:
      index - The index to set the value at.
      value - The logActionStates to set.
      Returns:
      This builder for chaining.
    • addLogActionStates

       States in which `log_actions` are logged. If empty, no logs are generated.
       
      repeated .google.storagetransfer.v1.LoggingConfig.LoggableActionState log_action_states = 2;
      Parameters:
      value - The logActionStates to add.
      Returns:
      This builder for chaining.
    • addAllLogActionStates

       States in which `log_actions` are logged. If empty, no logs are generated.
       
      repeated .google.storagetransfer.v1.LoggingConfig.LoggableActionState log_action_states = 2;
      Parameters:
      values - The logActionStates to add.
      Returns:
      This builder for chaining.
    • clearLogActionStates

      public TransferTypes.LoggingConfig.Builder clearLogActionStates()
       States in which `log_actions` are logged. If empty, no logs are generated.
       
      repeated .google.storagetransfer.v1.LoggingConfig.LoggableActionState log_action_states = 2;
      Returns:
      This builder for chaining.
    • getLogActionStatesValueList

      public List<Integer> getLogActionStatesValueList()
       States in which `log_actions` are logged. If empty, no logs are generated.
       
      repeated .google.storagetransfer.v1.LoggingConfig.LoggableActionState log_action_states = 2;
      Specified by:
      getLogActionStatesValueList in interface TransferTypes.LoggingConfigOrBuilder
      Returns:
      A list containing the enum numeric values on the wire for logActionStates.
    • getLogActionStatesValue

      public int getLogActionStatesValue(int index)
       States in which `log_actions` are logged. If empty, no logs are generated.
       
      repeated .google.storagetransfer.v1.LoggingConfig.LoggableActionState log_action_states = 2;
      Specified by:
      getLogActionStatesValue in interface TransferTypes.LoggingConfigOrBuilder
      Parameters:
      index - The index of the value to return.
      Returns:
      The enum numeric value on the wire of logActionStates at the given index.
    • setLogActionStatesValue

      public TransferTypes.LoggingConfig.Builder setLogActionStatesValue(int index, int value)
       States in which `log_actions` are logged. If empty, no logs are generated.
       
      repeated .google.storagetransfer.v1.LoggingConfig.LoggableActionState log_action_states = 2;
      Parameters:
      index - The index to set the value at.
      value - The enum numeric value on the wire for logActionStates to set.
      Returns:
      This builder for chaining.
    • addLogActionStatesValue

      public TransferTypes.LoggingConfig.Builder addLogActionStatesValue(int value)
       States in which `log_actions` are logged. If empty, no logs are generated.
       
      repeated .google.storagetransfer.v1.LoggingConfig.LoggableActionState log_action_states = 2;
      Parameters:
      value - The enum numeric value on the wire for logActionStates to add.
      Returns:
      This builder for chaining.
    • addAllLogActionStatesValue

      public TransferTypes.LoggingConfig.Builder addAllLogActionStatesValue(Iterable<Integer> values)
       States in which `log_actions` are logged. If empty, no logs are generated.
       
      repeated .google.storagetransfer.v1.LoggingConfig.LoggableActionState log_action_states = 2;
      Parameters:
      values - The enum numeric values on the wire for logActionStates to add.
      Returns:
      This builder for chaining.
    • getEnableOnpremGcsTransferLogs

      public boolean getEnableOnpremGcsTransferLogs()
       For PosixFilesystem transfers, enables
       [file system transfer
       logs](https://cloud.google.com/storage-transfer/docs/on-prem-transfer-log-format)
       instead of, or in addition to, Cloud Logging.
      
       This option ignores [LoggableAction] and [LoggableActionState]. If these
       are set, Cloud Logging will also be enabled for this transfer.
       
      bool enable_onprem_gcs_transfer_logs = 3;
      Specified by:
      getEnableOnpremGcsTransferLogs in interface TransferTypes.LoggingConfigOrBuilder
      Returns:
      The enableOnpremGcsTransferLogs.
    • setEnableOnpremGcsTransferLogs

      public TransferTypes.LoggingConfig.Builder setEnableOnpremGcsTransferLogs(boolean value)
       For PosixFilesystem transfers, enables
       [file system transfer
       logs](https://cloud.google.com/storage-transfer/docs/on-prem-transfer-log-format)
       instead of, or in addition to, Cloud Logging.
      
       This option ignores [LoggableAction] and [LoggableActionState]. If these
       are set, Cloud Logging will also be enabled for this transfer.
       
      bool enable_onprem_gcs_transfer_logs = 3;
      Parameters:
      value - The enableOnpremGcsTransferLogs to set.
      Returns:
      This builder for chaining.
    • clearEnableOnpremGcsTransferLogs

      public TransferTypes.LoggingConfig.Builder clearEnableOnpremGcsTransferLogs()
       For PosixFilesystem transfers, enables
       [file system transfer
       logs](https://cloud.google.com/storage-transfer/docs/on-prem-transfer-log-format)
       instead of, or in addition to, Cloud Logging.
      
       This option ignores [LoggableAction] and [LoggableActionState]. If these
       are set, Cloud Logging will also be enabled for this transfer.
       
      bool enable_onprem_gcs_transfer_logs = 3;
      Returns:
      This builder for chaining.