public static final class TransferTypes.LoggingConfig extends GeneratedMessageV3 implements TransferTypes.LoggingConfigOrBuilder
Specifies the logging behavior for transfer operations.
For cloud-to-cloud transfers, logs are sent to Cloud Logging. See
Read transfer
logs for
details.
For transfers to or from a POSIX file system, logs are stored in the
Cloud Storage bucket that is the source or sink of the transfer.
See Managing Transfer for on-premises jobs
for details.
Protobuf type google.storagetransfer.v1.LoggingConfig
Static Fields
ENABLE_ONPREM_GCS_TRANSFER_LOGS_FIELD_NUMBER
public static final int ENABLE_ONPREM_GCS_TRANSFER_LOGS_FIELD_NUMBER
Field Value
LOG_ACTIONS_FIELD_NUMBER
public static final int LOG_ACTIONS_FIELD_NUMBER
Field Value
LOG_ACTION_STATES_FIELD_NUMBER
public static final int LOG_ACTION_STATES_FIELD_NUMBER
Field Value
Static Methods
getDefaultInstance()
public static TransferTypes.LoggingConfig getDefaultInstance()
Returns
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()
Returns
newBuilder()
public static TransferTypes.LoggingConfig.Builder newBuilder()
Returns
newBuilder(TransferTypes.LoggingConfig prototype)
public static TransferTypes.LoggingConfig.Builder newBuilder(TransferTypes.LoggingConfig prototype)
Parameter
Returns
public static TransferTypes.LoggingConfig parseDelimitedFrom(InputStream input)
Parameter
Returns
Exceptions
public static TransferTypes.LoggingConfig parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Exceptions
parseFrom(byte[] data)
public static TransferTypes.LoggingConfig parseFrom(byte[] data)
Parameter
Name |
Description |
data |
byte[]
|
Returns
Exceptions
parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
public static TransferTypes.LoggingConfig parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Exceptions
parseFrom(ByteString data)
public static TransferTypes.LoggingConfig parseFrom(ByteString data)
Parameter
Returns
Exceptions
parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
public static TransferTypes.LoggingConfig parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Exceptions
public static TransferTypes.LoggingConfig parseFrom(CodedInputStream input)
Parameter
Returns
Exceptions
public static TransferTypes.LoggingConfig parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Exceptions
public static TransferTypes.LoggingConfig parseFrom(InputStream input)
Parameter
Returns
Exceptions
public static TransferTypes.LoggingConfig parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Exceptions
parseFrom(ByteBuffer data)
public static TransferTypes.LoggingConfig parseFrom(ByteBuffer data)
Parameter
Returns
Exceptions
parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
public static TransferTypes.LoggingConfig parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Exceptions
parser()
public static Parser<TransferTypes.LoggingConfig> parser()
Returns
Methods
equals(Object obj)
public boolean equals(Object obj)
Parameter
Returns
Overrides
getDefaultInstanceForType()
public TransferTypes.LoggingConfig getDefaultInstanceForType()
Returns
getEnableOnpremGcsTransferLogs()
public boolean getEnableOnpremGcsTransferLogs()
For transfers with a PosixFilesystem source, this option enables the Cloud
Storage transfer logs for this transfer.
bool enable_onprem_gcs_transfer_logs = 3;
Returns
Type |
Description |
boolean |
The enableOnpremGcsTransferLogs.
|
getLogActionStates(int index)
public TransferTypes.LoggingConfig.LoggableActionState getLogActionStates(int index)
States in which log_actions
are logged. If empty, no logs are generated.
Not supported for transfers with PosixFilesystem data sources; use
enable_onprem_gcs_transfer_logs instead.
repeated .google.storagetransfer.v1.LoggingConfig.LoggableActionState log_action_states = 2;
Parameter
Name |
Description |
index |
int
The index of the element to return.
|
Returns
getLogActionStatesCount()
public int getLogActionStatesCount()
States in which log_actions
are logged. If empty, no logs are generated.
Not supported for transfers with PosixFilesystem data sources; use
enable_onprem_gcs_transfer_logs instead.
repeated .google.storagetransfer.v1.LoggingConfig.LoggableActionState log_action_states = 2;
Returns
Type |
Description |
int |
The count of logActionStates.
|
getLogActionStatesList()
public List<TransferTypes.LoggingConfig.LoggableActionState> getLogActionStatesList()
States in which log_actions
are logged. If empty, no logs are generated.
Not supported for transfers with PosixFilesystem data sources; use
enable_onprem_gcs_transfer_logs instead.
repeated .google.storagetransfer.v1.LoggingConfig.LoggableActionState log_action_states = 2;
Returns
getLogActionStatesValue(int index)
public int getLogActionStatesValue(int index)
States in which log_actions
are logged. If empty, no logs are generated.
Not supported for transfers with PosixFilesystem data sources; use
enable_onprem_gcs_transfer_logs instead.
repeated .google.storagetransfer.v1.LoggingConfig.LoggableActionState log_action_states = 2;
Parameter
Name |
Description |
index |
int
The index of the value to return.
|
Returns
Type |
Description |
int |
The enum numeric value on the wire of logActionStates at the given index.
|
getLogActionStatesValueList()
public List<Integer> getLogActionStatesValueList()
States in which log_actions
are logged. If empty, no logs are generated.
Not supported for transfers with PosixFilesystem data sources; use
enable_onprem_gcs_transfer_logs instead.
repeated .google.storagetransfer.v1.LoggingConfig.LoggableActionState log_action_states = 2;
Returns
Type |
Description |
List<Integer> |
A list containing the enum numeric values on the wire for logActionStates.
|
getLogActions(int index)
public TransferTypes.LoggingConfig.LoggableAction getLogActions(int index)
Specifies the actions to be logged. If empty, no logs are generated.
Not supported for transfers with PosixFilesystem data sources; use
enable_onprem_gcs_transfer_logs instead.
repeated .google.storagetransfer.v1.LoggingConfig.LoggableAction log_actions = 1;
Parameter
Name |
Description |
index |
int
The index of the element to return.
|
Returns
getLogActionsCount()
public int getLogActionsCount()
Specifies the actions to be logged. If empty, no logs are generated.
Not supported for transfers with PosixFilesystem data sources; use
enable_onprem_gcs_transfer_logs instead.
repeated .google.storagetransfer.v1.LoggingConfig.LoggableAction log_actions = 1;
Returns
Type |
Description |
int |
The count of logActions.
|
getLogActionsList()
public List<TransferTypes.LoggingConfig.LoggableAction> getLogActionsList()
Specifies the actions to be logged. If empty, no logs are generated.
Not supported for transfers with PosixFilesystem data sources; use
enable_onprem_gcs_transfer_logs instead.
repeated .google.storagetransfer.v1.LoggingConfig.LoggableAction log_actions = 1;
Returns
getLogActionsValue(int index)
public int getLogActionsValue(int index)
Specifies the actions to be logged. If empty, no logs are generated.
Not supported for transfers with PosixFilesystem data sources; use
enable_onprem_gcs_transfer_logs instead.
repeated .google.storagetransfer.v1.LoggingConfig.LoggableAction log_actions = 1;
Parameter
Name |
Description |
index |
int
The index of the value to return.
|
Returns
Type |
Description |
int |
The enum numeric value on the wire of logActions at the given index.
|
getLogActionsValueList()
public List<Integer> getLogActionsValueList()
Specifies the actions to be logged. If empty, no logs are generated.
Not supported for transfers with PosixFilesystem data sources; use
enable_onprem_gcs_transfer_logs instead.
repeated .google.storagetransfer.v1.LoggingConfig.LoggableAction log_actions = 1;
Returns
Type |
Description |
List<Integer> |
A list containing the enum numeric values on the wire for logActions.
|
getParserForType()
public Parser<TransferTypes.LoggingConfig> getParserForType()
Returns
Overrides
getSerializedSize()
public int getSerializedSize()
Returns
Overrides
getUnknownFields()
public final UnknownFieldSet getUnknownFields()
Returns
Overrides
hashCode()
Returns
Overrides
internalGetFieldAccessorTable()
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
Overrides
isInitialized()
public final boolean isInitialized()
Returns
Overrides
newBuilderForType()
public TransferTypes.LoggingConfig.Builder newBuilderForType()
Returns
newBuilderForType(GeneratedMessageV3.BuilderParent parent)
protected TransferTypes.LoggingConfig.Builder newBuilderForType(GeneratedMessageV3.BuilderParent parent)
Parameter
Returns
Overrides
newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
protected Object newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
Parameter
Returns
Overrides
toBuilder()
public TransferTypes.LoggingConfig.Builder toBuilder()
Returns
writeTo(CodedOutputStream output)
public void writeTo(CodedOutputStream output)
Parameter
Overrides
Exceptions