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 Summary
Modifier and TypeMethodDescriptionaddAllLogActions(Iterable<? extends TransferTypes.LoggingConfig.LoggableAction> values) Specifies the actions to be logged.addAllLogActionStates(Iterable<? extends TransferTypes.LoggingConfig.LoggableActionState> values) States in which `log_actions` are logged.addAllLogActionStatesValue(Iterable<Integer> values) States in which `log_actions` are logged.addAllLogActionsValue(Iterable<Integer> values) Specifies the actions to be logged.Specifies the actions to be logged.States in which `log_actions` are logged.addLogActionStatesValue(int value) States in which `log_actions` are logged.addLogActionsValue(int value) Specifies the actions to be logged.build()clear()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.Specifies the actions to be logged.States in which `log_actions` are logged.static final com.google.protobuf.Descriptors.Descriptorcom.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.protected com.google.protobuf.GeneratedMessage.FieldAccessorTablefinal booleanmergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) mergeFrom(com.google.protobuf.Message other) 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.setLogActions(int index, TransferTypes.LoggingConfig.LoggableAction value) Specifies the actions to be logged.setLogActionStates(int index, TransferTypes.LoggingConfig.LoggableActionState value) States in which `log_actions` are logged.setLogActionStatesValue(int index, int value) States in which `log_actions` are logged.setLogActionsValue(int index, int value) Specifies the actions to be logged.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, setUnknownFieldsProto3Methods inherited from class com.google.protobuf.AbstractMessage.Builder
findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toStringMethods inherited from class com.google.protobuf.AbstractMessageLite.Builder
addAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, newUninitializedMessageExceptionMethods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface com.google.protobuf.Message.Builder
mergeDelimitedFrom, mergeDelimitedFromMethods inherited from interface com.google.protobuf.MessageLite.Builder
mergeFromMethods 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:
internalGetFieldAccessorTablein classcom.google.protobuf.GeneratedMessage.Builder<TransferTypes.LoggingConfig.Builder>
-
clear
- Specified by:
clearin interfacecom.google.protobuf.Message.Builder- Specified by:
clearin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
clearin classcom.google.protobuf.GeneratedMessage.Builder<TransferTypes.LoggingConfig.Builder>
-
getDescriptorForType
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.Message.Builder- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.MessageOrBuilder- Overrides:
getDescriptorForTypein classcom.google.protobuf.GeneratedMessage.Builder<TransferTypes.LoggingConfig.Builder>
-
getDefaultInstanceForType
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-
build
- Specified by:
buildin interfacecom.google.protobuf.Message.Builder- Specified by:
buildin interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
- Specified by:
buildPartialin interfacecom.google.protobuf.Message.Builder- Specified by:
buildPartialin interfacecom.google.protobuf.MessageLite.Builder
-
mergeFrom
- Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<TransferTypes.LoggingConfig.Builder>
-
mergeFrom
-
isInitialized
public final boolean isInitialized()- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.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:
mergeFromin interfacecom.google.protobuf.Message.Builder- Specified by:
mergeFromin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<TransferTypes.LoggingConfig.Builder>- Throws:
IOException
-
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.
-
setLogActions
public TransferTypes.LoggingConfig.Builder setLogActions(int index, TransferTypes.LoggingConfig.LoggableAction 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 logActions to set.- Returns:
- This builder for chaining.
-
addLogActions
public TransferTypes.LoggingConfig.Builder addLogActions(TransferTypes.LoggingConfig.LoggableAction 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 logActions to add.- Returns:
- This builder for chaining.
-
addAllLogActions
public TransferTypes.LoggingConfig.Builder addAllLogActions(Iterable<? extends TransferTypes.LoggingConfig.LoggableAction> 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 logActions to add.- Returns:
- This builder for chaining.
-
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
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.
-
setLogActionsValue
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
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
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
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.
-
setLogActionStates
public TransferTypes.LoggingConfig.Builder setLogActionStates(int index, TransferTypes.LoggingConfig.LoggableActionState 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 logActionStates to set.- Returns:
- This builder for chaining.
-
addLogActionStates
public TransferTypes.LoggingConfig.Builder addLogActionStates(TransferTypes.LoggingConfig.LoggableActionState 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 logActionStates to add.- Returns:
- This builder for chaining.
-
addAllLogActionStates
public TransferTypes.LoggingConfig.Builder addAllLogActionStates(Iterable<? extends TransferTypes.LoggingConfig.LoggableActionState> 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 logActionStates to add.- Returns:
- This builder for chaining.
-
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
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.
-
setLogActionStatesValue
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
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
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:
getEnableOnpremGcsTransferLogsin interfaceTransferTypes.LoggingConfigOrBuilder- Returns:
- The enableOnpremGcsTransferLogs.
-
setEnableOnpremGcsTransferLogs
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
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.
-