Package com.google.cloud.asset.v1
Class GcsDestination.Builder
- java.lang.Object
-
- com.google.protobuf.AbstractMessageLite.Builder
-
- com.google.protobuf.AbstractMessage.Builder<BuilderT>
-
- com.google.protobuf.GeneratedMessageV3.Builder<GcsDestination.Builder>
-
- com.google.cloud.asset.v1.GcsDestination.Builder
-
- All Implemented Interfaces:
GcsDestinationOrBuilder,com.google.protobuf.Message.Builder,com.google.protobuf.MessageLite.Builder,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,Cloneable
- Enclosing class:
- GcsDestination
public static final class GcsDestination.Builder extends com.google.protobuf.GeneratedMessageV3.Builder<GcsDestination.Builder> implements GcsDestinationOrBuilder
A Cloud Storage location.
Protobuf typegoogle.cloud.asset.v1.GcsDestination
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description GcsDestination.BuilderaddRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)GcsDestinationbuild()GcsDestinationbuildPartial()GcsDestination.Builderclear()GcsDestination.BuilderclearField(com.google.protobuf.Descriptors.FieldDescriptor field)GcsDestination.BuilderclearObjectUri()GcsDestination.BuilderclearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)GcsDestination.BuilderclearUri()The URI of the Cloud Storage object.GcsDestination.BuilderclearUriPrefix()The URI prefix of all generated Cloud Storage objects.GcsDestination.Builderclone()GcsDestinationgetDefaultInstanceForType()static com.google.protobuf.Descriptors.DescriptorgetDescriptor()com.google.protobuf.Descriptors.DescriptorgetDescriptorForType()GcsDestination.ObjectUriCasegetObjectUriCase()StringgetUri()The URI of the Cloud Storage object.com.google.protobuf.ByteStringgetUriBytes()The URI of the Cloud Storage object.StringgetUriPrefix()The URI prefix of all generated Cloud Storage objects.com.google.protobuf.ByteStringgetUriPrefixBytes()The URI prefix of all generated Cloud Storage objects.booleanhasUri()The URI of the Cloud Storage object.booleanhasUriPrefix()The URI prefix of all generated Cloud Storage objects.protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTableinternalGetFieldAccessorTable()booleanisInitialized()GcsDestination.BuildermergeFrom(GcsDestination other)GcsDestination.BuildermergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)GcsDestination.BuildermergeFrom(com.google.protobuf.Message other)GcsDestination.BuildermergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)GcsDestination.BuildersetField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)GcsDestination.BuildersetRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)GcsDestination.BuildersetUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)GcsDestination.BuildersetUri(String value)The URI of the Cloud Storage object.GcsDestination.BuildersetUriBytes(com.google.protobuf.ByteString value)The URI of the Cloud Storage object.GcsDestination.BuildersetUriPrefix(String value)The URI prefix of all generated Cloud Storage objects.GcsDestination.BuildersetUriPrefixBytes(com.google.protobuf.ByteString value)The URI prefix of all generated Cloud Storage objects.-
Methods inherited from class com.google.protobuf.GeneratedMessageV3.Builder
getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, internalGetMapField, internalGetMutableMapField, isClean, markClean, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, setUnknownFieldSetBuilder, setUnknownFieldsProto3
-
Methods inherited from class com.google.protobuf.AbstractMessage.Builder
findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toString
-
Methods inherited from class com.google.protobuf.AbstractMessageLite.Builder
addAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, newUninitializedMessageException
-
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
-
-
-
Method Detail
-
getDescriptor
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
-
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
- Specified by:
internalGetFieldAccessorTablein classcom.google.protobuf.GeneratedMessageV3.Builder<GcsDestination.Builder>
-
clear
public GcsDestination.Builder clear()
- Specified by:
clearin interfacecom.google.protobuf.Message.Builder- Specified by:
clearin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
clearin classcom.google.protobuf.GeneratedMessageV3.Builder<GcsDestination.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.GeneratedMessageV3.Builder<GcsDestination.Builder>
-
getDefaultInstanceForType
public GcsDestination getDefaultInstanceForType()
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-
build
public GcsDestination build()
- Specified by:
buildin interfacecom.google.protobuf.Message.Builder- Specified by:
buildin interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
public GcsDestination buildPartial()
- Specified by:
buildPartialin interfacecom.google.protobuf.Message.Builder- Specified by:
buildPartialin interfacecom.google.protobuf.MessageLite.Builder
-
clone
public GcsDestination.Builder clone()
- Specified by:
clonein interfacecom.google.protobuf.Message.Builder- Specified by:
clonein interfacecom.google.protobuf.MessageLite.Builder- Overrides:
clonein classcom.google.protobuf.GeneratedMessageV3.Builder<GcsDestination.Builder>
-
setField
public GcsDestination.Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
- Specified by:
setFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
setFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<GcsDestination.Builder>
-
clearField
public GcsDestination.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
- Specified by:
clearFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
clearFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<GcsDestination.Builder>
-
clearOneof
public GcsDestination.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
- Specified by:
clearOneofin interfacecom.google.protobuf.Message.Builder- Overrides:
clearOneofin classcom.google.protobuf.GeneratedMessageV3.Builder<GcsDestination.Builder>
-
setRepeatedField
public GcsDestination.Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)
- Specified by:
setRepeatedFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
setRepeatedFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<GcsDestination.Builder>
-
addRepeatedField
public GcsDestination.Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
- Specified by:
addRepeatedFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
addRepeatedFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<GcsDestination.Builder>
-
mergeFrom
public GcsDestination.Builder mergeFrom(com.google.protobuf.Message other)
- Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<GcsDestination.Builder>
-
mergeFrom
public GcsDestination.Builder mergeFrom(GcsDestination other)
-
isInitialized
public final boolean isInitialized()
- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessageV3.Builder<GcsDestination.Builder>
-
mergeFrom
public GcsDestination.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<GcsDestination.Builder>- Throws:
IOException
-
getObjectUriCase
public GcsDestination.ObjectUriCase getObjectUriCase()
- Specified by:
getObjectUriCasein interfaceGcsDestinationOrBuilder
-
clearObjectUri
public GcsDestination.Builder clearObjectUri()
-
hasUri
public boolean hasUri()
The URI of the Cloud Storage object. It's the same URI that is used by gsutil. Example: "gs://bucket_name/object_name". See [Viewing and Editing Object Metadata](https://cloud.google.com/storage/docs/viewing-editing-metadata) for more information. If the specified Cloud Storage object already exists and there is no [hold](https://cloud.google.com/storage/docs/object-holds), it will be overwritten with the exported result.
string uri = 1;- Specified by:
hasUriin interfaceGcsDestinationOrBuilder- Returns:
- Whether the uri field is set.
-
getUri
public String getUri()
The URI of the Cloud Storage object. It's the same URI that is used by gsutil. Example: "gs://bucket_name/object_name". See [Viewing and Editing Object Metadata](https://cloud.google.com/storage/docs/viewing-editing-metadata) for more information. If the specified Cloud Storage object already exists and there is no [hold](https://cloud.google.com/storage/docs/object-holds), it will be overwritten with the exported result.
string uri = 1;- Specified by:
getUriin interfaceGcsDestinationOrBuilder- Returns:
- The uri.
-
getUriBytes
public com.google.protobuf.ByteString getUriBytes()
The URI of the Cloud Storage object. It's the same URI that is used by gsutil. Example: "gs://bucket_name/object_name". See [Viewing and Editing Object Metadata](https://cloud.google.com/storage/docs/viewing-editing-metadata) for more information. If the specified Cloud Storage object already exists and there is no [hold](https://cloud.google.com/storage/docs/object-holds), it will be overwritten with the exported result.
string uri = 1;- Specified by:
getUriBytesin interfaceGcsDestinationOrBuilder- Returns:
- The bytes for uri.
-
setUri
public GcsDestination.Builder setUri(String value)
The URI of the Cloud Storage object. It's the same URI that is used by gsutil. Example: "gs://bucket_name/object_name". See [Viewing and Editing Object Metadata](https://cloud.google.com/storage/docs/viewing-editing-metadata) for more information. If the specified Cloud Storage object already exists and there is no [hold](https://cloud.google.com/storage/docs/object-holds), it will be overwritten with the exported result.
string uri = 1;- Parameters:
value- The uri to set.- Returns:
- This builder for chaining.
-
clearUri
public GcsDestination.Builder clearUri()
The URI of the Cloud Storage object. It's the same URI that is used by gsutil. Example: "gs://bucket_name/object_name". See [Viewing and Editing Object Metadata](https://cloud.google.com/storage/docs/viewing-editing-metadata) for more information. If the specified Cloud Storage object already exists and there is no [hold](https://cloud.google.com/storage/docs/object-holds), it will be overwritten with the exported result.
string uri = 1;- Returns:
- This builder for chaining.
-
setUriBytes
public GcsDestination.Builder setUriBytes(com.google.protobuf.ByteString value)
The URI of the Cloud Storage object. It's the same URI that is used by gsutil. Example: "gs://bucket_name/object_name". See [Viewing and Editing Object Metadata](https://cloud.google.com/storage/docs/viewing-editing-metadata) for more information. If the specified Cloud Storage object already exists and there is no [hold](https://cloud.google.com/storage/docs/object-holds), it will be overwritten with the exported result.
string uri = 1;- Parameters:
value- The bytes for uri to set.- Returns:
- This builder for chaining.
-
hasUriPrefix
public boolean hasUriPrefix()
The URI prefix of all generated Cloud Storage objects. Example: "gs://bucket_name/object_name_prefix". Each object URI is in format: "gs://bucket_name/object_name_prefix/<asset type>/<shard number> and only contains assets for that type. <shard number> starts from 0. Example: "gs://bucket_name/object_name_prefix/compute.googleapis.com/Disk/0" is the first shard of output objects containing all compute.googleapis.com/Disk assets. An INVALID_ARGUMENT error will be returned if file with the same name "gs://bucket_name/object_name_prefix" already exists.
string uri_prefix = 2;- Specified by:
hasUriPrefixin interfaceGcsDestinationOrBuilder- Returns:
- Whether the uriPrefix field is set.
-
getUriPrefix
public String getUriPrefix()
The URI prefix of all generated Cloud Storage objects. Example: "gs://bucket_name/object_name_prefix". Each object URI is in format: "gs://bucket_name/object_name_prefix/<asset type>/<shard number> and only contains assets for that type. <shard number> starts from 0. Example: "gs://bucket_name/object_name_prefix/compute.googleapis.com/Disk/0" is the first shard of output objects containing all compute.googleapis.com/Disk assets. An INVALID_ARGUMENT error will be returned if file with the same name "gs://bucket_name/object_name_prefix" already exists.
string uri_prefix = 2;- Specified by:
getUriPrefixin interfaceGcsDestinationOrBuilder- Returns:
- The uriPrefix.
-
getUriPrefixBytes
public com.google.protobuf.ByteString getUriPrefixBytes()
The URI prefix of all generated Cloud Storage objects. Example: "gs://bucket_name/object_name_prefix". Each object URI is in format: "gs://bucket_name/object_name_prefix/<asset type>/<shard number> and only contains assets for that type. <shard number> starts from 0. Example: "gs://bucket_name/object_name_prefix/compute.googleapis.com/Disk/0" is the first shard of output objects containing all compute.googleapis.com/Disk assets. An INVALID_ARGUMENT error will be returned if file with the same name "gs://bucket_name/object_name_prefix" already exists.
string uri_prefix = 2;- Specified by:
getUriPrefixBytesin interfaceGcsDestinationOrBuilder- Returns:
- The bytes for uriPrefix.
-
setUriPrefix
public GcsDestination.Builder setUriPrefix(String value)
The URI prefix of all generated Cloud Storage objects. Example: "gs://bucket_name/object_name_prefix". Each object URI is in format: "gs://bucket_name/object_name_prefix/<asset type>/<shard number> and only contains assets for that type. <shard number> starts from 0. Example: "gs://bucket_name/object_name_prefix/compute.googleapis.com/Disk/0" is the first shard of output objects containing all compute.googleapis.com/Disk assets. An INVALID_ARGUMENT error will be returned if file with the same name "gs://bucket_name/object_name_prefix" already exists.
string uri_prefix = 2;- Parameters:
value- The uriPrefix to set.- Returns:
- This builder for chaining.
-
clearUriPrefix
public GcsDestination.Builder clearUriPrefix()
The URI prefix of all generated Cloud Storage objects. Example: "gs://bucket_name/object_name_prefix". Each object URI is in format: "gs://bucket_name/object_name_prefix/<asset type>/<shard number> and only contains assets for that type. <shard number> starts from 0. Example: "gs://bucket_name/object_name_prefix/compute.googleapis.com/Disk/0" is the first shard of output objects containing all compute.googleapis.com/Disk assets. An INVALID_ARGUMENT error will be returned if file with the same name "gs://bucket_name/object_name_prefix" already exists.
string uri_prefix = 2;- Returns:
- This builder for chaining.
-
setUriPrefixBytes
public GcsDestination.Builder setUriPrefixBytes(com.google.protobuf.ByteString value)
The URI prefix of all generated Cloud Storage objects. Example: "gs://bucket_name/object_name_prefix". Each object URI is in format: "gs://bucket_name/object_name_prefix/<asset type>/<shard number> and only contains assets for that type. <shard number> starts from 0. Example: "gs://bucket_name/object_name_prefix/compute.googleapis.com/Disk/0" is the first shard of output objects containing all compute.googleapis.com/Disk assets. An INVALID_ARGUMENT error will be returned if file with the same name "gs://bucket_name/object_name_prefix" already exists.
string uri_prefix = 2;- Parameters:
value- The bytes for uriPrefix to set.- Returns:
- This builder for chaining.
-
setUnknownFields
public final GcsDestination.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
- Specified by:
setUnknownFieldsin interfacecom.google.protobuf.Message.Builder- Overrides:
setUnknownFieldsin classcom.google.protobuf.GeneratedMessageV3.Builder<GcsDestination.Builder>
-
mergeUnknownFields
public final GcsDestination.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
- Specified by:
mergeUnknownFieldsin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeUnknownFieldsin classcom.google.protobuf.GeneratedMessageV3.Builder<GcsDestination.Builder>
-
-