Class TransferTypes.LoggingConfig

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

public static final class TransferTypes.LoggingConfig extends com.google.protobuf.GeneratedMessage 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
See Also:
  • Field Details

    • LOG_ACTIONS_FIELD_NUMBER

      public static final int LOG_ACTIONS_FIELD_NUMBER
      See Also:
    • LOG_ACTION_STATES_FIELD_NUMBER

      public static final int LOG_ACTION_STATES_FIELD_NUMBER
      See Also:
    • ENABLE_ONPREM_GCS_TRANSFER_LOGS_FIELD_NUMBER

      public static final int ENABLE_ONPREM_GCS_TRANSFER_LOGS_FIELD_NUMBER
      See Also:
  • 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
    • 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.
    • 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.
    • 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.
    • 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.
    • 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.
    • isInitialized

      public final boolean isInitialized()
      Specified by:
      isInitialized in interface com.google.protobuf.MessageLiteOrBuilder
      Overrides:
      isInitialized in class com.google.protobuf.GeneratedMessage
    • writeTo

      public void writeTo(com.google.protobuf.CodedOutputStream output) throws IOException
      Specified by:
      writeTo in interface com.google.protobuf.MessageLite
      Overrides:
      writeTo in class com.google.protobuf.GeneratedMessage
      Throws:
      IOException
    • getSerializedSize

      public int getSerializedSize()
      Specified by:
      getSerializedSize in interface com.google.protobuf.MessageLite
      Overrides:
      getSerializedSize in class com.google.protobuf.GeneratedMessage
    • equals

      public boolean equals(Object obj)
      Specified by:
      equals in interface com.google.protobuf.Message
      Overrides:
      equals in class com.google.protobuf.AbstractMessage
    • hashCode

      public int hashCode()
      Specified by:
      hashCode in interface com.google.protobuf.Message
      Overrides:
      hashCode in class com.google.protobuf.AbstractMessage
    • parseFrom

      public static TransferTypes.LoggingConfig parseFrom(ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static TransferTypes.LoggingConfig parseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static TransferTypes.LoggingConfig parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static TransferTypes.LoggingConfig parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static TransferTypes.LoggingConfig parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static TransferTypes.LoggingConfig parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static TransferTypes.LoggingConfig parseFrom(InputStream input) throws IOException
      Throws:
      IOException
    • parseFrom

      public static TransferTypes.LoggingConfig parseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
      Throws:
      IOException
    • parseDelimitedFrom

      public static TransferTypes.LoggingConfig parseDelimitedFrom(InputStream input) throws IOException
      Throws:
      IOException
    • parseDelimitedFrom

      public static TransferTypes.LoggingConfig parseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
      Throws:
      IOException
    • parseFrom

      public static TransferTypes.LoggingConfig parseFrom(com.google.protobuf.CodedInputStream input) throws IOException
      Throws:
      IOException
    • parseFrom

      public static TransferTypes.LoggingConfig parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
      Throws:
      IOException
    • newBuilderForType

      public TransferTypes.LoggingConfig.Builder newBuilderForType()
      Specified by:
      newBuilderForType in interface com.google.protobuf.Message
      Specified by:
      newBuilderForType in interface com.google.protobuf.MessageLite
    • newBuilder

      public static TransferTypes.LoggingConfig.Builder newBuilder()
    • newBuilder

    • toBuilder

      Specified by:
      toBuilder in interface com.google.protobuf.Message
      Specified by:
      toBuilder in interface com.google.protobuf.MessageLite
    • newBuilderForType

      protected TransferTypes.LoggingConfig.Builder newBuilderForType(com.google.protobuf.AbstractMessage.BuilderParent parent)
      Overrides:
      newBuilderForType in class com.google.protobuf.AbstractMessage
    • getDefaultInstance

      public static TransferTypes.LoggingConfig getDefaultInstance()
    • parser

      public static com.google.protobuf.Parser<TransferTypes.LoggingConfig> parser()
    • getParserForType

      public com.google.protobuf.Parser<TransferTypes.LoggingConfig> getParserForType()
      Specified by:
      getParserForType in interface com.google.protobuf.Message
      Specified by:
      getParserForType in interface com.google.protobuf.MessageLite
      Overrides:
      getParserForType in class com.google.protobuf.GeneratedMessage
    • getDefaultInstanceForType

      public TransferTypes.LoggingConfig getDefaultInstanceForType()
      Specified by:
      getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuilder
      Specified by:
      getDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilder