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:
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final classSpecifies the logging behavior for transfer operations.static enumLoggable actions.static enumLoggable action states.Nested classes/interfaces inherited from class com.google.protobuf.GeneratedMessage
com.google.protobuf.GeneratedMessage.ExtendableBuilder<MessageT extends com.google.protobuf.GeneratedMessage.ExtendableMessage<MessageT>,BuilderT extends com.google.protobuf.GeneratedMessage.ExtendableBuilder<MessageT, BuilderT>>, com.google.protobuf.GeneratedMessage.ExtendableMessage<MessageT extends com.google.protobuf.GeneratedMessage.ExtendableMessage<MessageT>>, com.google.protobuf.GeneratedMessage.ExtendableMessageOrBuilder<MessageT extends com.google.protobuf.GeneratedMessage.ExtendableMessage<MessageT>>, com.google.protobuf.GeneratedMessage.FieldAccessorTable, com.google.protobuf.GeneratedMessage.GeneratedExtension<ContainingT extends com.google.protobuf.Message, T extends Object>, com.google.protobuf.GeneratedMessage.UnusedPrivateParameter Nested classes/interfaces inherited from class com.google.protobuf.AbstractMessage
com.google.protobuf.AbstractMessage.BuilderParentNested classes/interfaces inherited from class com.google.protobuf.AbstractMessageLite
com.google.protobuf.AbstractMessageLite.InternalOneOfEnum -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final intstatic final intstatic final intFields inherited from class com.google.protobuf.GeneratedMessage
alwaysUseFieldBuilders, loggedPre22TypeNames, unknownFieldsFields inherited from class com.google.protobuf.AbstractMessage
memoizedSizeFields inherited from class com.google.protobuf.AbstractMessageLite
memoizedHashCode -
Method Summary
Modifier and TypeMethodDescriptionbooleanstatic TransferTypes.LoggingConfigstatic final com.google.protobuf.Descriptors.DescriptorbooleanFor 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.getLogActions(int index) Specifies the actions to be logged.intSpecifies the actions to be logged.Specifies the actions to be logged.getLogActionStates(int index) States in which `log_actions` are logged.intStates in which `log_actions` are logged.States in which `log_actions` are logged.intgetLogActionStatesValue(int index) States in which `log_actions` are logged.States in which `log_actions` are logged.intgetLogActionsValue(int index) Specifies the actions to be logged.Specifies the actions to be logged.com.google.protobuf.Parser<TransferTypes.LoggingConfig>intinthashCode()protected com.google.protobuf.GeneratedMessage.FieldAccessorTablefinal booleannewBuilder(TransferTypes.LoggingConfig prototype) protected TransferTypes.LoggingConfig.BuildernewBuilderForType(com.google.protobuf.AbstractMessage.BuilderParent parent) static TransferTypes.LoggingConfigparseDelimitedFrom(InputStream input) static TransferTypes.LoggingConfigparseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static TransferTypes.LoggingConfigparseFrom(byte[] data) static TransferTypes.LoggingConfigparseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static TransferTypes.LoggingConfigparseFrom(com.google.protobuf.ByteString data) static TransferTypes.LoggingConfigparseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static TransferTypes.LoggingConfigparseFrom(com.google.protobuf.CodedInputStream input) static TransferTypes.LoggingConfigparseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static TransferTypes.LoggingConfigparseFrom(InputStream input) static TransferTypes.LoggingConfigparseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static TransferTypes.LoggingConfigparseFrom(ByteBuffer data) static TransferTypes.LoggingConfigparseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static com.google.protobuf.Parser<TransferTypes.LoggingConfig>parser()voidwriteTo(com.google.protobuf.CodedOutputStream output) Methods inherited from class com.google.protobuf.GeneratedMessage
canUseUnsafe, computeStringSize, computeStringSizeNoTag, emptyBooleanList, emptyDoubleList, emptyFloatList, emptyIntList, emptyList, emptyLongList, getAllFields, getDescriptorForType, getField, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof, internalGetMapField, internalGetMapFieldReflection, isStringEmpty, makeExtensionsImmutable, makeMutableCopy, makeMutableCopy, mergeFromAndMakeImmutableInternal, newFileScopedGeneratedExtension, newInstance, newMessageScopedGeneratedExtension, parseDelimitedWithIOException, parseDelimitedWithIOException, parseUnknownField, parseUnknownFieldProto3, parseWithIOException, parseWithIOException, parseWithIOException, parseWithIOException, serializeBooleanMapTo, serializeIntegerMapTo, serializeLongMapTo, serializeStringMapTo, writeReplace, writeString, writeStringNoTagMethods inherited from class com.google.protobuf.AbstractMessage
findInitializationErrors, getInitializationErrorString, hashFields, toStringMethods inherited from class com.google.protobuf.AbstractMessageLite
addAll, checkByteStringIsUtf8, toByteArray, toByteString, writeDelimitedTo, writeToMethods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface com.google.protobuf.MessageLite
toByteArray, toByteString, writeDelimitedTo, writeToMethods inherited from interface com.google.protobuf.MessageOrBuilder
findInitializationErrors, getAllFields, getDescriptorForType, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
-
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:
internalGetFieldAccessorTablein classcom.google.protobuf.GeneratedMessage
-
getLogActionsList
Specifies the actions to be logged. If empty, no logs are generated.
repeated .google.storagetransfer.v1.LoggingConfig.LoggableAction log_actions = 1;- Specified by:
getLogActionsListin interfaceTransferTypes.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:
getLogActionsCountin interfaceTransferTypes.LoggingConfigOrBuilder- Returns:
- The count of logActions.
-
getLogActions
Specifies the actions to be logged. If empty, no logs are generated.
repeated .google.storagetransfer.v1.LoggingConfig.LoggableAction log_actions = 1;- Specified by:
getLogActionsin interfaceTransferTypes.LoggingConfigOrBuilder- Parameters:
index- The index of the element to return.- Returns:
- The logActions at the given index.
-
getLogActionsValueList
Specifies the actions to be logged. If empty, no logs are generated.
repeated .google.storagetransfer.v1.LoggingConfig.LoggableAction log_actions = 1;- Specified by:
getLogActionsValueListin interfaceTransferTypes.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:
getLogActionsValuein interfaceTransferTypes.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
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:
getLogActionStatesListin interfaceTransferTypes.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:
getLogActionStatesCountin interfaceTransferTypes.LoggingConfigOrBuilder- Returns:
- The count of logActionStates.
-
getLogActionStates
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:
getLogActionStatesin interfaceTransferTypes.LoggingConfigOrBuilder- Parameters:
index- The index of the element to return.- Returns:
- The logActionStates at the given index.
-
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:
getLogActionStatesValueListin interfaceTransferTypes.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:
getLogActionStatesValuein interfaceTransferTypes.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:
getEnableOnpremGcsTransferLogsin interfaceTransferTypes.LoggingConfigOrBuilder- Returns:
- The enableOnpremGcsTransferLogs.
-
isInitialized
public final boolean isInitialized()- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessage
-
writeTo
- Specified by:
writeToin interfacecom.google.protobuf.MessageLite- Overrides:
writeToin classcom.google.protobuf.GeneratedMessage- Throws:
IOException
-
getSerializedSize
public int getSerializedSize()- Specified by:
getSerializedSizein interfacecom.google.protobuf.MessageLite- Overrides:
getSerializedSizein classcom.google.protobuf.GeneratedMessage
-
equals
- Specified by:
equalsin interfacecom.google.protobuf.Message- Overrides:
equalsin classcom.google.protobuf.AbstractMessage
-
hashCode
public int hashCode()- Specified by:
hashCodein interfacecom.google.protobuf.Message- Overrides:
hashCodein classcom.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
- Throws:
IOException
-
parseFrom
public static TransferTypes.LoggingConfig parseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException - Throws:
IOException
-
parseDelimitedFrom
- 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
- Specified by:
newBuilderForTypein interfacecom.google.protobuf.Message- Specified by:
newBuilderForTypein interfacecom.google.protobuf.MessageLite
-
newBuilder
-
newBuilder
-
toBuilder
- Specified by:
toBuilderin interfacecom.google.protobuf.Message- Specified by:
toBuilderin interfacecom.google.protobuf.MessageLite
-
newBuilderForType
protected TransferTypes.LoggingConfig.Builder newBuilderForType(com.google.protobuf.AbstractMessage.BuilderParent parent) - Overrides:
newBuilderForTypein classcom.google.protobuf.AbstractMessage
-
getDefaultInstance
-
parser
-
getParserForType
- Specified by:
getParserForTypein interfacecom.google.protobuf.Message- Specified by:
getParserForTypein interfacecom.google.protobuf.MessageLite- Overrides:
getParserForTypein classcom.google.protobuf.GeneratedMessage
-
getDefaultInstanceForType
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-