Class ObjectMetadataReportOptions.Builder (0.6.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
TypeDescription
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
NameDescription
valuesIterable<String>

The metadataFields to add.

Returns
TypeDescription
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
NameDescription
valueString

The metadataFields to add.

Returns
TypeDescription
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
NameDescription
valueByteString

The bytes of the metadataFields to add.

Returns
TypeDescription
ObjectMetadataReportOptions.Builder

This builder for chaining.

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public ObjectMetadataReportOptions.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
ObjectMetadataReportOptions.Builder
Overrides

build()

public ObjectMetadataReportOptions build()
Returns
TypeDescription
ObjectMetadataReportOptions

buildPartial()

public ObjectMetadataReportOptions buildPartial()
Returns
TypeDescription
ObjectMetadataReportOptions

clear()

public ObjectMetadataReportOptions.Builder clear()
Returns
TypeDescription
ObjectMetadataReportOptions.Builder
Overrides

clearDestinationOptions()

public ObjectMetadataReportOptions.Builder clearDestinationOptions()
Returns
TypeDescription
ObjectMetadataReportOptions.Builder

clearField(Descriptors.FieldDescriptor field)

public ObjectMetadataReportOptions.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
NameDescription
fieldFieldDescriptor
Returns
TypeDescription
ObjectMetadataReportOptions.Builder
Overrides

clearFilter()

public ObjectMetadataReportOptions.Builder clearFilter()
Returns
TypeDescription
ObjectMetadataReportOptions.Builder

clearMetadataFields()

public ObjectMetadataReportOptions.Builder clearMetadataFields()

Metadata fields to be included in the report.

repeated string metadata_fields = 1;

Returns
TypeDescription
ObjectMetadataReportOptions.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

public ObjectMetadataReportOptions.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
NameDescription
oneofOneofDescriptor
Returns
TypeDescription
ObjectMetadataReportOptions.Builder
Overrides

clearStorageDestinationOptions()

public ObjectMetadataReportOptions.Builder clearStorageDestinationOptions()

Cloud Storage as the storage system.

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

Returns
TypeDescription
ObjectMetadataReportOptions.Builder

clearStorageFilters()

public ObjectMetadataReportOptions.Builder clearStorageFilters()

Cloud Storage as the storage system.

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

Returns
TypeDescription
ObjectMetadataReportOptions.Builder

clone()

public ObjectMetadataReportOptions.Builder clone()
Returns
TypeDescription
ObjectMetadataReportOptions.Builder
Overrides

getDefaultInstanceForType()

public ObjectMetadataReportOptions getDefaultInstanceForType()
Returns
TypeDescription
ObjectMetadataReportOptions

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
Descriptor
Overrides

getDestinationOptionsCase()

public ObjectMetadataReportOptions.DestinationOptionsCase getDestinationOptionsCase()
Returns
TypeDescription
ObjectMetadataReportOptions.DestinationOptionsCase

getFilterCase()

public ObjectMetadataReportOptions.FilterCase getFilterCase()
Returns
TypeDescription
ObjectMetadataReportOptions.FilterCase

getMetadataFields(int index)

public String getMetadataFields(int index)

Metadata fields to be included in the report.

repeated string metadata_fields = 1;

Parameter
NameDescription
indexint

The index of the element to return.

Returns
TypeDescription
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
NameDescription
indexint

The index of the value to return.

Returns
TypeDescription
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
TypeDescription
int

The count of metadataFields.

getMetadataFieldsList()

public ProtocolStringList getMetadataFieldsList()

Metadata fields to be included in the report.

repeated string metadata_fields = 1;

Returns
TypeDescription
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
TypeDescription
CloudStorageDestinationOptions

The storageDestinationOptions.

getStorageDestinationOptionsBuilder()

public CloudStorageDestinationOptions.Builder getStorageDestinationOptionsBuilder()

Cloud Storage as the storage system.

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

Returns
TypeDescription
CloudStorageDestinationOptions.Builder

getStorageDestinationOptionsOrBuilder()

public CloudStorageDestinationOptionsOrBuilder getStorageDestinationOptionsOrBuilder()

Cloud Storage as the storage system.

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

Returns
TypeDescription
CloudStorageDestinationOptionsOrBuilder

getStorageFilters()

public CloudStorageFilters getStorageFilters()

Cloud Storage as the storage system.

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

Returns
TypeDescription
CloudStorageFilters

The storageFilters.

getStorageFiltersBuilder()

public CloudStorageFilters.Builder getStorageFiltersBuilder()

Cloud Storage as the storage system.

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

Returns
TypeDescription
CloudStorageFilters.Builder

getStorageFiltersOrBuilder()

public CloudStorageFiltersOrBuilder getStorageFiltersOrBuilder()

Cloud Storage as the storage system.

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

Returns
TypeDescription
CloudStorageFiltersOrBuilder

hasStorageDestinationOptions()

public boolean hasStorageDestinationOptions()

Cloud Storage as the storage system.

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

Returns
TypeDescription
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
TypeDescription
boolean

Whether the storageFilters field is set.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

mergeFrom(ObjectMetadataReportOptions other)

public ObjectMetadataReportOptions.Builder mergeFrom(ObjectMetadataReportOptions other)
Parameter
NameDescription
otherObjectMetadataReportOptions
Returns
TypeDescription
ObjectMetadataReportOptions.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public ObjectMetadataReportOptions.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputCodedInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
ObjectMetadataReportOptions.Builder
Overrides
Exceptions
TypeDescription
IOException

mergeFrom(Message other)

public ObjectMetadataReportOptions.Builder mergeFrom(Message other)
Parameter
NameDescription
otherMessage
Returns
TypeDescription
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
NameDescription
valueCloudStorageDestinationOptions
Returns
TypeDescription
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
NameDescription
valueCloudStorageFilters
Returns
TypeDescription
ObjectMetadataReportOptions.Builder

mergeUnknownFields(UnknownFieldSet unknownFields)

public final ObjectMetadataReportOptions.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
ObjectMetadataReportOptions.Builder
Overrides

setField(Descriptors.FieldDescriptor field, Object value)

public ObjectMetadataReportOptions.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
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
NameDescription
indexint

The index to set the value at.

valueString

The metadataFields to set.

Returns
TypeDescription
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
NameDescription
fieldFieldDescriptor
indexint
valueObject
Returns
TypeDescription
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
NameDescription
valueCloudStorageDestinationOptions
Returns
TypeDescription
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
NameDescription
builderForValueCloudStorageDestinationOptions.Builder
Returns
TypeDescription
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
NameDescription
valueCloudStorageFilters
Returns
TypeDescription
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
NameDescription
builderForValueCloudStorageFilters.Builder
Returns
TypeDescription
ObjectMetadataReportOptions.Builder

setUnknownFields(UnknownFieldSet unknownFields)

public final ObjectMetadataReportOptions.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
ObjectMetadataReportOptions.Builder
Overrides