Class ObjectMetadataReportOptions.Builder (0.27.0)

public static final class ObjectMetadataReportOptions.Builder extends GeneratedMessageV3.Builder<ObjectMetadataReportOptions.Builder> implements ObjectMetadataReportOptionsOrBuilder

Report specification for exporting object metadata. Next ID: 4

Protobuf type google.cloud.storageinsights.v1.ObjectMetadataReportOptions

Static Methods

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
Type Description
Descriptor

Methods

addAllMetadataFields(Iterable<String> values)

public ObjectMetadataReportOptions.Builder addAllMetadataFields(Iterable<String> values)

Metadata fields to be included in the report.

repeated string metadata_fields = 1;

Parameter
Name Description
values Iterable<String>

The metadataFields to add.

Returns
Type Description
ObjectMetadataReportOptions.Builder

This builder for chaining.

addMetadataFields(String value)

public ObjectMetadataReportOptions.Builder addMetadataFields(String value)

Metadata fields to be included in the report.

repeated string metadata_fields = 1;

Parameter
Name Description
value String

The metadataFields to add.

Returns
Type Description
ObjectMetadataReportOptions.Builder

This builder for chaining.

addMetadataFieldsBytes(ByteString value)

public ObjectMetadataReportOptions.Builder addMetadataFieldsBytes(ByteString value)

Metadata fields to be included in the report.

repeated string metadata_fields = 1;

Parameter
Name Description
value ByteString

The bytes of the metadataFields to add.

Returns
Type Description
ObjectMetadataReportOptions.Builder

This builder for chaining.

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public ObjectMetadataReportOptions.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
ObjectMetadataReportOptions.Builder
Overrides

build()

public ObjectMetadataReportOptions build()
Returns
Type Description
ObjectMetadataReportOptions

buildPartial()

public ObjectMetadataReportOptions buildPartial()
Returns
Type Description
ObjectMetadataReportOptions

clear()

public ObjectMetadataReportOptions.Builder clear()
Returns
Type Description
ObjectMetadataReportOptions.Builder
Overrides

clearDestinationOptions()

public ObjectMetadataReportOptions.Builder clearDestinationOptions()
Returns
Type Description
ObjectMetadataReportOptions.Builder

clearField(Descriptors.FieldDescriptor field)

public ObjectMetadataReportOptions.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
Name Description
field FieldDescriptor
Returns
Type Description
ObjectMetadataReportOptions.Builder
Overrides

clearFilter()

public ObjectMetadataReportOptions.Builder clearFilter()
Returns
Type Description
ObjectMetadataReportOptions.Builder

clearMetadataFields()

public ObjectMetadataReportOptions.Builder clearMetadataFields()

Metadata fields to be included in the report.

repeated string metadata_fields = 1;

Returns
Type Description
ObjectMetadataReportOptions.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

public ObjectMetadataReportOptions.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
Name Description
oneof OneofDescriptor
Returns
Type Description
ObjectMetadataReportOptions.Builder
Overrides

clearStorageDestinationOptions()

public ObjectMetadataReportOptions.Builder clearStorageDestinationOptions()

Cloud Storage as the storage system.

.google.cloud.storageinsights.v1.CloudStorageDestinationOptions storage_destination_options = 3;

Returns
Type Description
ObjectMetadataReportOptions.Builder

clearStorageFilters()

public ObjectMetadataReportOptions.Builder clearStorageFilters()

Cloud Storage as the storage system.

.google.cloud.storageinsights.v1.CloudStorageFilters storage_filters = 2;

Returns
Type Description
ObjectMetadataReportOptions.Builder

clone()

public ObjectMetadataReportOptions.Builder clone()
Returns
Type Description
ObjectMetadataReportOptions.Builder
Overrides

getDefaultInstanceForType()

public ObjectMetadataReportOptions getDefaultInstanceForType()
Returns
Type Description
ObjectMetadataReportOptions

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
Type Description
Descriptor
Overrides

getDestinationOptionsCase()

public ObjectMetadataReportOptions.DestinationOptionsCase getDestinationOptionsCase()
Returns
Type Description
ObjectMetadataReportOptions.DestinationOptionsCase

getFilterCase()

public ObjectMetadataReportOptions.FilterCase getFilterCase()
Returns
Type Description
ObjectMetadataReportOptions.FilterCase

getMetadataFields(int index)

public String getMetadataFields(int index)

Metadata fields to be included in the report.

repeated string metadata_fields = 1;

Parameter
Name Description
index int

The index of the element to return.

Returns
Type Description
String

The metadataFields at the given index.

getMetadataFieldsBytes(int index)

public ByteString getMetadataFieldsBytes(int index)

Metadata fields to be included in the report.

repeated string metadata_fields = 1;

Parameter
Name Description
index int

The index of the value to return.

Returns
Type Description
ByteString

The bytes of the metadataFields at the given index.

getMetadataFieldsCount()

public int getMetadataFieldsCount()

Metadata fields to be included in the report.

repeated string metadata_fields = 1;

Returns
Type Description
int

The count of metadataFields.

getMetadataFieldsList()

public ProtocolStringList getMetadataFieldsList()

Metadata fields to be included in the report.

repeated string metadata_fields = 1;

Returns
Type Description
ProtocolStringList

A list containing the metadataFields.

getStorageDestinationOptions()

public CloudStorageDestinationOptions getStorageDestinationOptions()

Cloud Storage as the storage system.

.google.cloud.storageinsights.v1.CloudStorageDestinationOptions storage_destination_options = 3;

Returns
Type Description
CloudStorageDestinationOptions

The storageDestinationOptions.

getStorageDestinationOptionsBuilder()

public CloudStorageDestinationOptions.Builder getStorageDestinationOptionsBuilder()

Cloud Storage as the storage system.

.google.cloud.storageinsights.v1.CloudStorageDestinationOptions storage_destination_options = 3;

Returns
Type Description
CloudStorageDestinationOptions.Builder

getStorageDestinationOptionsOrBuilder()

public CloudStorageDestinationOptionsOrBuilder getStorageDestinationOptionsOrBuilder()

Cloud Storage as the storage system.

.google.cloud.storageinsights.v1.CloudStorageDestinationOptions storage_destination_options = 3;

Returns
Type Description
CloudStorageDestinationOptionsOrBuilder

getStorageFilters()

public CloudStorageFilters getStorageFilters()

Cloud Storage as the storage system.

.google.cloud.storageinsights.v1.CloudStorageFilters storage_filters = 2;

Returns
Type Description
CloudStorageFilters

The storageFilters.

getStorageFiltersBuilder()

public CloudStorageFilters.Builder getStorageFiltersBuilder()

Cloud Storage as the storage system.

.google.cloud.storageinsights.v1.CloudStorageFilters storage_filters = 2;

Returns
Type Description
CloudStorageFilters.Builder

getStorageFiltersOrBuilder()

public CloudStorageFiltersOrBuilder getStorageFiltersOrBuilder()

Cloud Storage as the storage system.

.google.cloud.storageinsights.v1.CloudStorageFilters storage_filters = 2;

Returns
Type Description
CloudStorageFiltersOrBuilder

hasStorageDestinationOptions()

public boolean hasStorageDestinationOptions()

Cloud Storage as the storage system.

.google.cloud.storageinsights.v1.CloudStorageDestinationOptions storage_destination_options = 3;

Returns
Type Description
boolean

Whether the storageDestinationOptions field is set.

hasStorageFilters()

public boolean hasStorageFilters()

Cloud Storage as the storage system.

.google.cloud.storageinsights.v1.CloudStorageFilters storage_filters = 2;

Returns
Type Description
boolean

Whether the storageFilters field is set.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
Type Description
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(ObjectMetadataReportOptions other)

public ObjectMetadataReportOptions.Builder mergeFrom(ObjectMetadataReportOptions other)
Parameter
Name Description
other ObjectMetadataReportOptions
Returns
Type Description
ObjectMetadataReportOptions.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public ObjectMetadataReportOptions.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input CodedInputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
ObjectMetadataReportOptions.Builder
Overrides
Exceptions
Type Description
IOException

mergeFrom(Message other)

public ObjectMetadataReportOptions.Builder mergeFrom(Message other)
Parameter
Name Description
other Message
Returns
Type Description
ObjectMetadataReportOptions.Builder
Overrides

mergeStorageDestinationOptions(CloudStorageDestinationOptions value)

public ObjectMetadataReportOptions.Builder mergeStorageDestinationOptions(CloudStorageDestinationOptions value)

Cloud Storage as the storage system.

.google.cloud.storageinsights.v1.CloudStorageDestinationOptions storage_destination_options = 3;

Parameter
Name Description
value CloudStorageDestinationOptions
Returns
Type Description
ObjectMetadataReportOptions.Builder

mergeStorageFilters(CloudStorageFilters value)

public ObjectMetadataReportOptions.Builder mergeStorageFilters(CloudStorageFilters value)

Cloud Storage as the storage system.

.google.cloud.storageinsights.v1.CloudStorageFilters storage_filters = 2;

Parameter
Name Description
value CloudStorageFilters
Returns
Type Description
ObjectMetadataReportOptions.Builder

mergeUnknownFields(UnknownFieldSet unknownFields)

public final ObjectMetadataReportOptions.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
ObjectMetadataReportOptions.Builder
Overrides

setField(Descriptors.FieldDescriptor field, Object value)

public ObjectMetadataReportOptions.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
ObjectMetadataReportOptions.Builder
Overrides

setMetadataFields(int index, String value)

public ObjectMetadataReportOptions.Builder setMetadataFields(int index, String value)

Metadata fields to be included in the report.

repeated string metadata_fields = 1;

Parameters
Name Description
index int

The index to set the value at.

value String

The metadataFields to set.

Returns
Type Description
ObjectMetadataReportOptions.Builder

This builder for chaining.

setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)

public ObjectMetadataReportOptions.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
Name Description
field FieldDescriptor
index int
value Object
Returns
Type Description
ObjectMetadataReportOptions.Builder
Overrides

setStorageDestinationOptions(CloudStorageDestinationOptions value)

public ObjectMetadataReportOptions.Builder setStorageDestinationOptions(CloudStorageDestinationOptions value)

Cloud Storage as the storage system.

.google.cloud.storageinsights.v1.CloudStorageDestinationOptions storage_destination_options = 3;

Parameter
Name Description
value CloudStorageDestinationOptions
Returns
Type Description
ObjectMetadataReportOptions.Builder

setStorageDestinationOptions(CloudStorageDestinationOptions.Builder builderForValue)

public ObjectMetadataReportOptions.Builder setStorageDestinationOptions(CloudStorageDestinationOptions.Builder builderForValue)

Cloud Storage as the storage system.

.google.cloud.storageinsights.v1.CloudStorageDestinationOptions storage_destination_options = 3;

Parameter
Name Description
builderForValue CloudStorageDestinationOptions.Builder
Returns
Type Description
ObjectMetadataReportOptions.Builder

setStorageFilters(CloudStorageFilters value)

public ObjectMetadataReportOptions.Builder setStorageFilters(CloudStorageFilters value)

Cloud Storage as the storage system.

.google.cloud.storageinsights.v1.CloudStorageFilters storage_filters = 2;

Parameter
Name Description
value CloudStorageFilters
Returns
Type Description
ObjectMetadataReportOptions.Builder

setStorageFilters(CloudStorageFilters.Builder builderForValue)

public ObjectMetadataReportOptions.Builder setStorageFilters(CloudStorageFilters.Builder builderForValue)

Cloud Storage as the storage system.

.google.cloud.storageinsights.v1.CloudStorageFilters storage_filters = 2;

Parameter
Name Description
builderForValue CloudStorageFilters.Builder
Returns
Type Description
ObjectMetadataReportOptions.Builder

setUnknownFields(UnknownFieldSet unknownFields)

public final ObjectMetadataReportOptions.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
ObjectMetadataReportOptions.Builder
Overrides