Class TransferTypes.ReplicationSpec

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

public static final class TransferTypes.ReplicationSpec extends com.google.protobuf.GeneratedMessage implements TransferTypes.ReplicationSpecOrBuilder
 Specifies the configuration for a cross-bucket replication job. Cross-bucket
 replication copies new or updated objects from a source Cloud Storage bucket
 to a destination Cloud Storage bucket. Existing objects in the source bucket
 are not copied by a new cross-bucket replication job.
 
Protobuf type google.storagetransfer.v1.ReplicationSpec
See Also:
  • Field Details

    • GCS_DATA_SOURCE_FIELD_NUMBER

      public static final int GCS_DATA_SOURCE_FIELD_NUMBER
      See Also:
    • GCS_DATA_SINK_FIELD_NUMBER

      public static final int GCS_DATA_SINK_FIELD_NUMBER
      See Also:
    • OBJECT_CONDITIONS_FIELD_NUMBER

      public static final int OBJECT_CONDITIONS_FIELD_NUMBER
      See Also:
    • TRANSFER_OPTIONS_FIELD_NUMBER

      public static final int TRANSFER_OPTIONS_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
    • getDataSourceCase

      Specified by:
      getDataSourceCase in interface TransferTypes.ReplicationSpecOrBuilder
    • getDataSinkCase

      Specified by:
      getDataSinkCase in interface TransferTypes.ReplicationSpecOrBuilder
    • hasGcsDataSource

      public boolean hasGcsDataSource()
       The Cloud Storage bucket from which to replicate objects.
       
      .google.storagetransfer.v1.GcsData gcs_data_source = 1;
      Specified by:
      hasGcsDataSource in interface TransferTypes.ReplicationSpecOrBuilder
      Returns:
      Whether the gcsDataSource field is set.
    • getGcsDataSource

      public TransferTypes.GcsData getGcsDataSource()
       The Cloud Storage bucket from which to replicate objects.
       
      .google.storagetransfer.v1.GcsData gcs_data_source = 1;
      Specified by:
      getGcsDataSource in interface TransferTypes.ReplicationSpecOrBuilder
      Returns:
      The gcsDataSource.
    • getGcsDataSourceOrBuilder

      public TransferTypes.GcsDataOrBuilder getGcsDataSourceOrBuilder()
       The Cloud Storage bucket from which to replicate objects.
       
      .google.storagetransfer.v1.GcsData gcs_data_source = 1;
      Specified by:
      getGcsDataSourceOrBuilder in interface TransferTypes.ReplicationSpecOrBuilder
    • hasGcsDataSink

      public boolean hasGcsDataSink()
       The Cloud Storage bucket to which to replicate objects.
       
      .google.storagetransfer.v1.GcsData gcs_data_sink = 2;
      Specified by:
      hasGcsDataSink in interface TransferTypes.ReplicationSpecOrBuilder
      Returns:
      Whether the gcsDataSink field is set.
    • getGcsDataSink

      public TransferTypes.GcsData getGcsDataSink()
       The Cloud Storage bucket to which to replicate objects.
       
      .google.storagetransfer.v1.GcsData gcs_data_sink = 2;
      Specified by:
      getGcsDataSink in interface TransferTypes.ReplicationSpecOrBuilder
      Returns:
      The gcsDataSink.
    • getGcsDataSinkOrBuilder

      public TransferTypes.GcsDataOrBuilder getGcsDataSinkOrBuilder()
       The Cloud Storage bucket to which to replicate objects.
       
      .google.storagetransfer.v1.GcsData gcs_data_sink = 2;
      Specified by:
      getGcsDataSinkOrBuilder in interface TransferTypes.ReplicationSpecOrBuilder
    • hasObjectConditions

      public boolean hasObjectConditions()
       Object conditions that determine which objects are transferred. For
       replication jobs, only `include_prefixes` and `exclude_prefixes` are
       supported.
       
      .google.storagetransfer.v1.ObjectConditions object_conditions = 3;
      Specified by:
      hasObjectConditions in interface TransferTypes.ReplicationSpecOrBuilder
      Returns:
      Whether the objectConditions field is set.
    • getObjectConditions

      public TransferTypes.ObjectConditions getObjectConditions()
       Object conditions that determine which objects are transferred. For
       replication jobs, only `include_prefixes` and `exclude_prefixes` are
       supported.
       
      .google.storagetransfer.v1.ObjectConditions object_conditions = 3;
      Specified by:
      getObjectConditions in interface TransferTypes.ReplicationSpecOrBuilder
      Returns:
      The objectConditions.
    • getObjectConditionsOrBuilder

      public TransferTypes.ObjectConditionsOrBuilder getObjectConditionsOrBuilder()
       Object conditions that determine which objects are transferred. For
       replication jobs, only `include_prefixes` and `exclude_prefixes` are
       supported.
       
      .google.storagetransfer.v1.ObjectConditions object_conditions = 3;
      Specified by:
      getObjectConditionsOrBuilder in interface TransferTypes.ReplicationSpecOrBuilder
    • hasTransferOptions

      public boolean hasTransferOptions()
       Specifies the metadata options to be applied during replication.
       Delete options are not supported. If a delete option is specified, the
       request fails with an [INVALID_ARGUMENT][google.rpc.Code.INVALID_ARGUMENT]
       error.
       
      .google.storagetransfer.v1.TransferOptions transfer_options = 4;
      Specified by:
      hasTransferOptions in interface TransferTypes.ReplicationSpecOrBuilder
      Returns:
      Whether the transferOptions field is set.
    • getTransferOptions

      public TransferTypes.TransferOptions getTransferOptions()
       Specifies the metadata options to be applied during replication.
       Delete options are not supported. If a delete option is specified, the
       request fails with an [INVALID_ARGUMENT][google.rpc.Code.INVALID_ARGUMENT]
       error.
       
      .google.storagetransfer.v1.TransferOptions transfer_options = 4;
      Specified by:
      getTransferOptions in interface TransferTypes.ReplicationSpecOrBuilder
      Returns:
      The transferOptions.
    • getTransferOptionsOrBuilder

      public TransferTypes.TransferOptionsOrBuilder getTransferOptionsOrBuilder()
       Specifies the metadata options to be applied during replication.
       Delete options are not supported. If a delete option is specified, the
       request fails with an [INVALID_ARGUMENT][google.rpc.Code.INVALID_ARGUMENT]
       error.
       
      .google.storagetransfer.v1.TransferOptions transfer_options = 4;
      Specified by:
      getTransferOptionsOrBuilder in interface TransferTypes.ReplicationSpecOrBuilder
    • 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.ReplicationSpec parseFrom(ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

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

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

      public static TransferTypes.ReplicationSpec 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.ReplicationSpec parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

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

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

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

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

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

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

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

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

      public static TransferTypes.ReplicationSpec.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.ReplicationSpec.Builder newBuilderForType(com.google.protobuf.AbstractMessage.BuilderParent parent)
      Overrides:
      newBuilderForType in class com.google.protobuf.AbstractMessage
    • getDefaultInstance

      public static TransferTypes.ReplicationSpec getDefaultInstance()
    • parser

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

      public com.google.protobuf.Parser<TransferTypes.ReplicationSpec> 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.ReplicationSpec getDefaultInstanceForType()
      Specified by:
      getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuilder
      Specified by:
      getDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilder