public static final class TransferTypes.HttpData.Builder extends com.google.protobuf.GeneratedMessageV3.Builder<TransferTypes.HttpData.Builder> implements TransferTypes.HttpDataOrBuilder
An HttpData resource specifies a list of objects on the web to be transferred over HTTP. The information of the objects to be transferred is contained in a file referenced by a URL. The first line in the file must be `"TsvHttpData-1.0"`, which specifies the format of the file. Subsequent lines specify the information of the list of objects, one object per list entry. Each entry has the following tab-delimited fields: * **HTTP URL** — The location of the object. * **Length** — The size of the object in bytes. * **MD5** — The base64-encoded MD5 hash of the object. For an example of a valid TSV file, see [Transferring data from URLs](https://cloud.google.com/storage-transfer/docs/create-url-list). When transferring data based on a URL list, keep the following in mind: * When an object located at `http(s)://hostname:port/<URL-path>` is transferred to a data sink, the name of the object at the data sink is `<hostname>/<URL-path>`. * If the specified size of an object does not match the actual size of the object fetched, the object is not transferred. * If the specified MD5 does not match the MD5 computed from the transferred bytes, the object transfer fails. * Ensure that each URL you specify is publicly accessible. For example, in Cloud Storage you can [share an object publicly] (/storage/docs/cloud-console#_sharingdata) and get a link to it. * Storage Transfer Service obeys `robots.txt` rules and requires the source HTTP server to support `Range` requests and to return a `Content-Length` header in each response. * [ObjectConditions][google.storagetransfer.v1.ObjectConditions] have no effect when filtering objects to transfer.Protobuf type
google.storagetransfer.v1.HttpData| Modifier and Type | Method and Description |
|---|---|
TransferTypes.HttpData.Builder |
addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field,
Object value) |
TransferTypes.HttpData |
build() |
TransferTypes.HttpData |
buildPartial() |
TransferTypes.HttpData.Builder |
clear() |
TransferTypes.HttpData.Builder |
clearField(com.google.protobuf.Descriptors.FieldDescriptor field) |
TransferTypes.HttpData.Builder |
clearListUrl()
Required.
|
TransferTypes.HttpData.Builder |
clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) |
TransferTypes.HttpData.Builder |
clone() |
TransferTypes.HttpData |
getDefaultInstanceForType() |
static com.google.protobuf.Descriptors.Descriptor |
getDescriptor() |
com.google.protobuf.Descriptors.Descriptor |
getDescriptorForType() |
String |
getListUrl()
Required.
|
com.google.protobuf.ByteString |
getListUrlBytes()
Required.
|
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable |
internalGetFieldAccessorTable() |
boolean |
isInitialized() |
TransferTypes.HttpData.Builder |
mergeFrom(com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
TransferTypes.HttpData.Builder |
mergeFrom(com.google.protobuf.Message other) |
TransferTypes.HttpData.Builder |
mergeFrom(TransferTypes.HttpData other) |
TransferTypes.HttpData.Builder |
mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) |
TransferTypes.HttpData.Builder |
setField(com.google.protobuf.Descriptors.FieldDescriptor field,
Object value) |
TransferTypes.HttpData.Builder |
setListUrl(String value)
Required.
|
TransferTypes.HttpData.Builder |
setListUrlBytes(com.google.protobuf.ByteString value)
Required.
|
TransferTypes.HttpData.Builder |
setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field,
int index,
Object value) |
TransferTypes.HttpData.Builder |
setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) |
getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, internalGetMapField, internalGetMutableMapField, isClean, markClean, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, setUnknownFieldSetBuilder, setUnknownFieldsProto3findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toStringaddAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, newUninitializedMessageExceptionequals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitfindInitializationErrors, getAllFields, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneofpublic static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessageV3.Builder<TransferTypes.HttpData.Builder>public TransferTypes.HttpData.Builder clear()
clear in interface com.google.protobuf.Message.Builderclear in interface com.google.protobuf.MessageLite.Builderclear in class com.google.protobuf.GeneratedMessageV3.Builder<TransferTypes.HttpData.Builder>public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
getDescriptorForType in interface com.google.protobuf.Message.BuildergetDescriptorForType in interface com.google.protobuf.MessageOrBuildergetDescriptorForType in class com.google.protobuf.GeneratedMessageV3.Builder<TransferTypes.HttpData.Builder>public TransferTypes.HttpData getDefaultInstanceForType()
getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuildergetDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilderpublic TransferTypes.HttpData build()
build in interface com.google.protobuf.Message.Builderbuild in interface com.google.protobuf.MessageLite.Builderpublic TransferTypes.HttpData buildPartial()
buildPartial in interface com.google.protobuf.Message.BuilderbuildPartial in interface com.google.protobuf.MessageLite.Builderpublic TransferTypes.HttpData.Builder clone()
clone in interface com.google.protobuf.Message.Builderclone in interface com.google.protobuf.MessageLite.Builderclone in class com.google.protobuf.GeneratedMessageV3.Builder<TransferTypes.HttpData.Builder>public TransferTypes.HttpData.Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
setField in interface com.google.protobuf.Message.BuildersetField in class com.google.protobuf.GeneratedMessageV3.Builder<TransferTypes.HttpData.Builder>public TransferTypes.HttpData.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
clearField in interface com.google.protobuf.Message.BuilderclearField in class com.google.protobuf.GeneratedMessageV3.Builder<TransferTypes.HttpData.Builder>public TransferTypes.HttpData.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
clearOneof in interface com.google.protobuf.Message.BuilderclearOneof in class com.google.protobuf.GeneratedMessageV3.Builder<TransferTypes.HttpData.Builder>public TransferTypes.HttpData.Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)
setRepeatedField in interface com.google.protobuf.Message.BuildersetRepeatedField in class com.google.protobuf.GeneratedMessageV3.Builder<TransferTypes.HttpData.Builder>public TransferTypes.HttpData.Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
addRepeatedField in interface com.google.protobuf.Message.BuilderaddRepeatedField in class com.google.protobuf.GeneratedMessageV3.Builder<TransferTypes.HttpData.Builder>public TransferTypes.HttpData.Builder mergeFrom(com.google.protobuf.Message other)
mergeFrom in interface com.google.protobuf.Message.BuildermergeFrom in class com.google.protobuf.AbstractMessage.Builder<TransferTypes.HttpData.Builder>public TransferTypes.HttpData.Builder mergeFrom(TransferTypes.HttpData other)
public final boolean isInitialized()
isInitialized in interface com.google.protobuf.MessageLiteOrBuilderisInitialized in class com.google.protobuf.GeneratedMessageV3.Builder<TransferTypes.HttpData.Builder>public TransferTypes.HttpData.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
mergeFrom in interface com.google.protobuf.Message.BuildermergeFrom in interface com.google.protobuf.MessageLite.BuildermergeFrom in class com.google.protobuf.AbstractMessage.Builder<TransferTypes.HttpData.Builder>IOExceptionpublic String getListUrl()
Required. The URL that points to the file that stores the object list entries. This file must allow public access. Currently, only URLs with HTTP and HTTPS schemes are supported.
string list_url = 1 [(.google.api.field_behavior) = REQUIRED];getListUrl in interface TransferTypes.HttpDataOrBuilderpublic com.google.protobuf.ByteString getListUrlBytes()
Required. The URL that points to the file that stores the object list entries. This file must allow public access. Currently, only URLs with HTTP and HTTPS schemes are supported.
string list_url = 1 [(.google.api.field_behavior) = REQUIRED];getListUrlBytes in interface TransferTypes.HttpDataOrBuilderpublic TransferTypes.HttpData.Builder setListUrl(String value)
Required. The URL that points to the file that stores the object list entries. This file must allow public access. Currently, only URLs with HTTP and HTTPS schemes are supported.
string list_url = 1 [(.google.api.field_behavior) = REQUIRED];value - The listUrl to set.public TransferTypes.HttpData.Builder clearListUrl()
Required. The URL that points to the file that stores the object list entries. This file must allow public access. Currently, only URLs with HTTP and HTTPS schemes are supported.
string list_url = 1 [(.google.api.field_behavior) = REQUIRED];public TransferTypes.HttpData.Builder setListUrlBytes(com.google.protobuf.ByteString value)
Required. The URL that points to the file that stores the object list entries. This file must allow public access. Currently, only URLs with HTTP and HTTPS schemes are supported.
string list_url = 1 [(.google.api.field_behavior) = REQUIRED];value - The bytes for listUrl to set.public final TransferTypes.HttpData.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
setUnknownFields in interface com.google.protobuf.Message.BuildersetUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<TransferTypes.HttpData.Builder>public final TransferTypes.HttpData.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
mergeUnknownFields in interface com.google.protobuf.Message.BuildermergeUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<TransferTypes.HttpData.Builder>Copyright © 2022 Google LLC. All rights reserved.