Package com.google.cloud.asset.v1p7beta1
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.v1p7beta1.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.v1p7beta1.GcsDestination
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description GcsDestination.Builder
addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
GcsDestination
build()
GcsDestination
buildPartial()
GcsDestination.Builder
clear()
GcsDestination.Builder
clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
GcsDestination.Builder
clearObjectUri()
GcsDestination.Builder
clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
GcsDestination.Builder
clearUri()
The URI of the Cloud Storage object.GcsDestination.Builder
clearUriPrefix()
The URI prefix of all generated Cloud Storage objects.GcsDestination.Builder
clone()
GcsDestination
getDefaultInstanceForType()
static com.google.protobuf.Descriptors.Descriptor
getDescriptor()
com.google.protobuf.Descriptors.Descriptor
getDescriptorForType()
GcsDestination.ObjectUriCase
getObjectUriCase()
String
getUri()
The URI of the Cloud Storage object.com.google.protobuf.ByteString
getUriBytes()
The URI of the Cloud Storage object.String
getUriPrefix()
The URI prefix of all generated Cloud Storage objects.com.google.protobuf.ByteString
getUriPrefixBytes()
The URI prefix of all generated Cloud Storage objects.boolean
hasUri()
The URI of the Cloud Storage object.boolean
hasUriPrefix()
The URI prefix of all generated Cloud Storage objects.protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable()
boolean
isInitialized()
GcsDestination.Builder
mergeFrom(GcsDestination other)
GcsDestination.Builder
mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
GcsDestination.Builder
mergeFrom(com.google.protobuf.Message other)
GcsDestination.Builder
mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
GcsDestination.Builder
setField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
GcsDestination.Builder
setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)
GcsDestination.Builder
setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
GcsDestination.Builder
setUri(String value)
The URI of the Cloud Storage object.GcsDestination.Builder
setUriBytes(com.google.protobuf.ByteString value)
The URI of the Cloud Storage object.GcsDestination.Builder
setUriPrefix(String value)
The URI prefix of all generated Cloud Storage objects.GcsDestination.Builder
setUriPrefixBytes(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:
internalGetFieldAccessorTable
in classcom.google.protobuf.GeneratedMessageV3.Builder<GcsDestination.Builder>
-
clear
public GcsDestination.Builder clear()
- Specified by:
clear
in interfacecom.google.protobuf.Message.Builder
- Specified by:
clear
in interfacecom.google.protobuf.MessageLite.Builder
- Overrides:
clear
in classcom.google.protobuf.GeneratedMessageV3.Builder<GcsDestination.Builder>
-
getDescriptorForType
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
- Specified by:
getDescriptorForType
in interfacecom.google.protobuf.Message.Builder
- Specified by:
getDescriptorForType
in interfacecom.google.protobuf.MessageOrBuilder
- Overrides:
getDescriptorForType
in classcom.google.protobuf.GeneratedMessageV3.Builder<GcsDestination.Builder>
-
getDefaultInstanceForType
public GcsDestination getDefaultInstanceForType()
- Specified by:
getDefaultInstanceForType
in interfacecom.google.protobuf.MessageLiteOrBuilder
- Specified by:
getDefaultInstanceForType
in interfacecom.google.protobuf.MessageOrBuilder
-
build
public GcsDestination build()
- Specified by:
build
in interfacecom.google.protobuf.Message.Builder
- Specified by:
build
in interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
public GcsDestination buildPartial()
- Specified by:
buildPartial
in interfacecom.google.protobuf.Message.Builder
- Specified by:
buildPartial
in interfacecom.google.protobuf.MessageLite.Builder
-
clone
public GcsDestination.Builder clone()
- Specified by:
clone
in interfacecom.google.protobuf.Message.Builder
- Specified by:
clone
in interfacecom.google.protobuf.MessageLite.Builder
- Overrides:
clone
in classcom.google.protobuf.GeneratedMessageV3.Builder<GcsDestination.Builder>
-
setField
public GcsDestination.Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
- Specified by:
setField
in interfacecom.google.protobuf.Message.Builder
- Overrides:
setField
in classcom.google.protobuf.GeneratedMessageV3.Builder<GcsDestination.Builder>
-
clearField
public GcsDestination.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
- Specified by:
clearField
in interfacecom.google.protobuf.Message.Builder
- Overrides:
clearField
in classcom.google.protobuf.GeneratedMessageV3.Builder<GcsDestination.Builder>
-
clearOneof
public GcsDestination.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
- Specified by:
clearOneof
in interfacecom.google.protobuf.Message.Builder
- Overrides:
clearOneof
in classcom.google.protobuf.GeneratedMessageV3.Builder<GcsDestination.Builder>
-
setRepeatedField
public GcsDestination.Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)
- Specified by:
setRepeatedField
in interfacecom.google.protobuf.Message.Builder
- Overrides:
setRepeatedField
in classcom.google.protobuf.GeneratedMessageV3.Builder<GcsDestination.Builder>
-
addRepeatedField
public GcsDestination.Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
- Specified by:
addRepeatedField
in interfacecom.google.protobuf.Message.Builder
- Overrides:
addRepeatedField
in classcom.google.protobuf.GeneratedMessageV3.Builder<GcsDestination.Builder>
-
mergeFrom
public GcsDestination.Builder mergeFrom(com.google.protobuf.Message other)
- Specified by:
mergeFrom
in interfacecom.google.protobuf.Message.Builder
- Overrides:
mergeFrom
in classcom.google.protobuf.AbstractMessage.Builder<GcsDestination.Builder>
-
mergeFrom
public GcsDestination.Builder mergeFrom(GcsDestination other)
-
isInitialized
public final boolean isInitialized()
- Specified by:
isInitialized
in interfacecom.google.protobuf.MessageLiteOrBuilder
- Overrides:
isInitialized
in 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:
mergeFrom
in interfacecom.google.protobuf.Message.Builder
- Specified by:
mergeFrom
in interfacecom.google.protobuf.MessageLite.Builder
- Overrides:
mergeFrom
in classcom.google.protobuf.AbstractMessage.Builder<GcsDestination.Builder>
- Throws:
IOException
-
getObjectUriCase
public GcsDestination.ObjectUriCase getObjectUriCase()
- Specified by:
getObjectUriCase
in 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.
string uri = 1;
- Specified by:
hasUri
in 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.
string uri = 1;
- Specified by:
getUri
in 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.
string uri = 1;
- Specified by:
getUriBytes
in 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.
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.
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.
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:
hasUriPrefix
in 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:
getUriPrefix
in 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:
getUriPrefixBytes
in 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:
setUnknownFields
in interfacecom.google.protobuf.Message.Builder
- Overrides:
setUnknownFields
in classcom.google.protobuf.GeneratedMessageV3.Builder<GcsDestination.Builder>
-
mergeUnknownFields
public final GcsDestination.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
- Specified by:
mergeUnknownFields
in interfacecom.google.protobuf.Message.Builder
- Overrides:
mergeUnknownFields
in classcom.google.protobuf.GeneratedMessageV3.Builder<GcsDestination.Builder>
-
-