Class ReportDetail.Builder (0.17.0)

public static final class ReportDetail.Builder extends GeneratedMessageV3.Builder<ReportDetail.Builder> implements ReportDetailOrBuilder

Message describing ReportDetail object. ReportDetail represents metadata of generated reports for a ReportConfig. Next ID: 10

Protobuf type google.cloud.storageinsights.v1.ReportDetail

Static Methods

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
TypeDescription
Descriptor

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public ReportDetail build()
Returns
TypeDescription
ReportDetail

buildPartial()

public ReportDetail buildPartial()
Returns
TypeDescription
ReportDetail

clear()

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

clearField(Descriptors.FieldDescriptor field)

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

clearLabels()

public ReportDetail.Builder clearLabels()
Returns
TypeDescription
ReportDetail.Builder

clearName()

public ReportDetail.Builder clearName()

Name of resource. It will be of form projects/<project>/locations/<location>/reportConfigs/<report-config-id>/reportDetails/<report-detail-id>.

string name = 1;

Returns
TypeDescription
ReportDetail.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

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

clearReportMetrics()

public ReportDetail.Builder clearReportMetrics()

Metrics of the report.

.google.cloud.storageinsights.v1.ReportDetail.Metrics report_metrics = 7;

Returns
TypeDescription
ReportDetail.Builder

clearReportPathPrefix()

public ReportDetail.Builder clearReportPathPrefix()

Prefix of the object name of each report's shard. This will have full prefix except the "extension" and "shard_id". For example, if the destination_path is {{report-config-id}}/dt={{datetime}}, the shard object name would be gs://my-insights/1A34-F2E456-12B456-1C3D/dt=2022-05-20T06:35/1A34-F2E456-12B456-1C3D_2022-05-20T06:35_5.csv and the value of report_path_prefix field would be gs://my-insights/1A34-F2E456-12B456-1C3D/dt=2022-05-20T06:35/1A34-F2E456-12B456-1C3D_2022-05-20T06:35_.

string report_path_prefix = 8;

Returns
TypeDescription
ReportDetail.Builder

This builder for chaining.

clearShardsCount()

public ReportDetail.Builder clearShardsCount()

Total shards generated for the report.

int64 shards_count = 9;

Returns
TypeDescription
ReportDetail.Builder

This builder for chaining.

clearSnapshotTime()

public ReportDetail.Builder clearSnapshotTime()

The snapshot time. All the report data is referenced at this point of time.

.google.protobuf.Timestamp snapshot_time = 2;

Returns
TypeDescription
ReportDetail.Builder

clearStatus()

public ReportDetail.Builder clearStatus()

Status of the ReportDetail.

.google.rpc.Status status = 4;

Returns
TypeDescription
ReportDetail.Builder

clearTargetDatetime()

public ReportDetail.Builder clearTargetDatetime()

The date for which report is generated. The time part of target_datetime will be zero till we support multiple reports per day.

.google.type.DateTime target_datetime = 6;

Returns
TypeDescription
ReportDetail.Builder

clone()

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

containsLabels(String key)

public boolean containsLabels(String key)

Labels as key value pairs

map<string, string> labels = 5;

Parameter
NameDescription
keyString
Returns
TypeDescription
boolean

getDefaultInstanceForType()

public ReportDetail getDefaultInstanceForType()
Returns
TypeDescription
ReportDetail

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
Descriptor
Overrides

getLabels() (deprecated)

public Map<String,String> getLabels()

Use #getLabelsMap() instead.

Returns
TypeDescription
Map<String,String>

getLabelsCount()

public int getLabelsCount()

Labels as key value pairs

map<string, string> labels = 5;

Returns
TypeDescription
int

getLabelsMap()

public Map<String,String> getLabelsMap()

Labels as key value pairs

map<string, string> labels = 5;

Returns
TypeDescription
Map<String,String>

getLabelsOrDefault(String key, String defaultValue)

public String getLabelsOrDefault(String key, String defaultValue)

Labels as key value pairs

map<string, string> labels = 5;

Parameters
NameDescription
keyString
defaultValueString
Returns
TypeDescription
String

getLabelsOrThrow(String key)

public String getLabelsOrThrow(String key)

Labels as key value pairs

map<string, string> labels = 5;

Parameter
NameDescription
keyString
Returns
TypeDescription
String

getMutableLabels() (deprecated)

public Map<String,String> getMutableLabels()

Use alternate mutation accessors instead.

Returns
TypeDescription
Map<String,String>

getName()

public String getName()

Name of resource. It will be of form projects/<project>/locations/<location>/reportConfigs/<report-config-id>/reportDetails/<report-detail-id>.

string name = 1;

Returns
TypeDescription
String

The name.

getNameBytes()

public ByteString getNameBytes()

Name of resource. It will be of form projects/<project>/locations/<location>/reportConfigs/<report-config-id>/reportDetails/<report-detail-id>.

string name = 1;

Returns
TypeDescription
ByteString

The bytes for name.

getReportMetrics()

public ReportDetail.Metrics getReportMetrics()

Metrics of the report.

.google.cloud.storageinsights.v1.ReportDetail.Metrics report_metrics = 7;

Returns
TypeDescription
ReportDetail.Metrics

The reportMetrics.

getReportMetricsBuilder()

public ReportDetail.Metrics.Builder getReportMetricsBuilder()

Metrics of the report.

.google.cloud.storageinsights.v1.ReportDetail.Metrics report_metrics = 7;

Returns
TypeDescription
ReportDetail.Metrics.Builder

getReportMetricsOrBuilder()

public ReportDetail.MetricsOrBuilder getReportMetricsOrBuilder()

Metrics of the report.

.google.cloud.storageinsights.v1.ReportDetail.Metrics report_metrics = 7;

Returns
TypeDescription
ReportDetail.MetricsOrBuilder

getReportPathPrefix()

public String getReportPathPrefix()

Prefix of the object name of each report's shard. This will have full prefix except the "extension" and "shard_id". For example, if the destination_path is {{report-config-id}}/dt={{datetime}}, the shard object name would be gs://my-insights/1A34-F2E456-12B456-1C3D/dt=2022-05-20T06:35/1A34-F2E456-12B456-1C3D_2022-05-20T06:35_5.csv and the value of report_path_prefix field would be gs://my-insights/1A34-F2E456-12B456-1C3D/dt=2022-05-20T06:35/1A34-F2E456-12B456-1C3D_2022-05-20T06:35_.

string report_path_prefix = 8;

Returns
TypeDescription
String

The reportPathPrefix.

getReportPathPrefixBytes()

public ByteString getReportPathPrefixBytes()

Prefix of the object name of each report's shard. This will have full prefix except the "extension" and "shard_id". For example, if the destination_path is {{report-config-id}}/dt={{datetime}}, the shard object name would be gs://my-insights/1A34-F2E456-12B456-1C3D/dt=2022-05-20T06:35/1A34-F2E456-12B456-1C3D_2022-05-20T06:35_5.csv and the value of report_path_prefix field would be gs://my-insights/1A34-F2E456-12B456-1C3D/dt=2022-05-20T06:35/1A34-F2E456-12B456-1C3D_2022-05-20T06:35_.

string report_path_prefix = 8;

Returns
TypeDescription
ByteString

The bytes for reportPathPrefix.

getShardsCount()

public long getShardsCount()

Total shards generated for the report.

int64 shards_count = 9;

Returns
TypeDescription
long

The shardsCount.

getSnapshotTime()

public Timestamp getSnapshotTime()

The snapshot time. All the report data is referenced at this point of time.

.google.protobuf.Timestamp snapshot_time = 2;

Returns
TypeDescription
Timestamp

The snapshotTime.

getSnapshotTimeBuilder()

public Timestamp.Builder getSnapshotTimeBuilder()

The snapshot time. All the report data is referenced at this point of time.

.google.protobuf.Timestamp snapshot_time = 2;

Returns
TypeDescription
Builder

getSnapshotTimeOrBuilder()

public TimestampOrBuilder getSnapshotTimeOrBuilder()

The snapshot time. All the report data is referenced at this point of time.

.google.protobuf.Timestamp snapshot_time = 2;

Returns
TypeDescription
TimestampOrBuilder

getStatus()

public Status getStatus()

Status of the ReportDetail.

.google.rpc.Status status = 4;

Returns
TypeDescription
com.google.rpc.Status

The status.

getStatusBuilder()

public Status.Builder getStatusBuilder()

Status of the ReportDetail.

.google.rpc.Status status = 4;

Returns
TypeDescription
com.google.rpc.Status.Builder

getStatusOrBuilder()

public StatusOrBuilder getStatusOrBuilder()

Status of the ReportDetail.

.google.rpc.Status status = 4;

Returns
TypeDescription
com.google.rpc.StatusOrBuilder

getTargetDatetime()

public DateTime getTargetDatetime()

The date for which report is generated. The time part of target_datetime will be zero till we support multiple reports per day.

.google.type.DateTime target_datetime = 6;

Returns
TypeDescription
com.google.type.DateTime

The targetDatetime.

getTargetDatetimeBuilder()

public DateTime.Builder getTargetDatetimeBuilder()

The date for which report is generated. The time part of target_datetime will be zero till we support multiple reports per day.

.google.type.DateTime target_datetime = 6;

Returns
TypeDescription
com.google.type.DateTime.Builder

getTargetDatetimeOrBuilder()

public DateTimeOrBuilder getTargetDatetimeOrBuilder()

The date for which report is generated. The time part of target_datetime will be zero till we support multiple reports per day.

.google.type.DateTime target_datetime = 6;

Returns
TypeDescription
com.google.type.DateTimeOrBuilder

hasReportMetrics()

public boolean hasReportMetrics()

Metrics of the report.

.google.cloud.storageinsights.v1.ReportDetail.Metrics report_metrics = 7;

Returns
TypeDescription
boolean

Whether the reportMetrics field is set.

hasSnapshotTime()

public boolean hasSnapshotTime()

The snapshot time. All the report data is referenced at this point of time.

.google.protobuf.Timestamp snapshot_time = 2;

Returns
TypeDescription
boolean

Whether the snapshotTime field is set.

hasStatus()

public boolean hasStatus()

Status of the ReportDetail.

.google.rpc.Status status = 4;

Returns
TypeDescription
boolean

Whether the status field is set.

hasTargetDatetime()

public boolean hasTargetDatetime()

The date for which report is generated. The time part of target_datetime will be zero till we support multiple reports per day.

.google.type.DateTime target_datetime = 6;

Returns
TypeDescription
boolean

Whether the targetDatetime field is set.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

internalGetMapField(int number)

protected MapField internalGetMapField(int number)
Parameter
NameDescription
numberint
Returns
TypeDescription
MapField
Overrides

internalGetMutableMapField(int number)

protected MapField internalGetMutableMapField(int number)
Parameter
NameDescription
numberint
Returns
TypeDescription
MapField
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

mergeFrom(ReportDetail other)

public ReportDetail.Builder mergeFrom(ReportDetail other)
Parameter
NameDescription
otherReportDetail
Returns
TypeDescription
ReportDetail.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

public ReportDetail.Builder mergeFrom(Message other)
Parameter
NameDescription
otherMessage
Returns
TypeDescription
ReportDetail.Builder
Overrides

mergeReportMetrics(ReportDetail.Metrics value)

public ReportDetail.Builder mergeReportMetrics(ReportDetail.Metrics value)

Metrics of the report.

.google.cloud.storageinsights.v1.ReportDetail.Metrics report_metrics = 7;

Parameter
NameDescription
valueReportDetail.Metrics
Returns
TypeDescription
ReportDetail.Builder

mergeSnapshotTime(Timestamp value)

public ReportDetail.Builder mergeSnapshotTime(Timestamp value)

The snapshot time. All the report data is referenced at this point of time.

.google.protobuf.Timestamp snapshot_time = 2;

Parameter
NameDescription
valueTimestamp
Returns
TypeDescription
ReportDetail.Builder

mergeStatus(Status value)

public ReportDetail.Builder mergeStatus(Status value)

Status of the ReportDetail.

.google.rpc.Status status = 4;

Parameter
NameDescription
valuecom.google.rpc.Status
Returns
TypeDescription
ReportDetail.Builder

mergeTargetDatetime(DateTime value)

public ReportDetail.Builder mergeTargetDatetime(DateTime value)

The date for which report is generated. The time part of target_datetime will be zero till we support multiple reports per day.

.google.type.DateTime target_datetime = 6;

Parameter
NameDescription
valuecom.google.type.DateTime
Returns
TypeDescription
ReportDetail.Builder

mergeUnknownFields(UnknownFieldSet unknownFields)

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

putAllLabels(Map<String,String> values)

public ReportDetail.Builder putAllLabels(Map<String,String> values)

Labels as key value pairs

map<string, string> labels = 5;

Parameter
NameDescription
valuesMap<String,String>
Returns
TypeDescription
ReportDetail.Builder

putLabels(String key, String value)

public ReportDetail.Builder putLabels(String key, String value)

Labels as key value pairs

map<string, string> labels = 5;

Parameters
NameDescription
keyString
valueString
Returns
TypeDescription
ReportDetail.Builder

removeLabels(String key)

public ReportDetail.Builder removeLabels(String key)

Labels as key value pairs

map<string, string> labels = 5;

Parameter
NameDescription
keyString
Returns
TypeDescription
ReportDetail.Builder

setField(Descriptors.FieldDescriptor field, Object value)

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

setName(String value)

public ReportDetail.Builder setName(String value)

Name of resource. It will be of form projects/<project>/locations/<location>/reportConfigs/<report-config-id>/reportDetails/<report-detail-id>.

string name = 1;

Parameter
NameDescription
valueString

The name to set.

Returns
TypeDescription
ReportDetail.Builder

This builder for chaining.

setNameBytes(ByteString value)

public ReportDetail.Builder setNameBytes(ByteString value)

Name of resource. It will be of form projects/<project>/locations/<location>/reportConfigs/<report-config-id>/reportDetails/<report-detail-id>.

string name = 1;

Parameter
NameDescription
valueByteString

The bytes for name to set.

Returns
TypeDescription
ReportDetail.Builder

This builder for chaining.

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

public ReportDetail.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
NameDescription
fieldFieldDescriptor
indexint
valueObject
Returns
TypeDescription
ReportDetail.Builder
Overrides

setReportMetrics(ReportDetail.Metrics value)

public ReportDetail.Builder setReportMetrics(ReportDetail.Metrics value)

Metrics of the report.

.google.cloud.storageinsights.v1.ReportDetail.Metrics report_metrics = 7;

Parameter
NameDescription
valueReportDetail.Metrics
Returns
TypeDescription
ReportDetail.Builder

setReportMetrics(ReportDetail.Metrics.Builder builderForValue)

public ReportDetail.Builder setReportMetrics(ReportDetail.Metrics.Builder builderForValue)

Metrics of the report.

.google.cloud.storageinsights.v1.ReportDetail.Metrics report_metrics = 7;

Parameter
NameDescription
builderForValueReportDetail.Metrics.Builder
Returns
TypeDescription
ReportDetail.Builder

setReportPathPrefix(String value)

public ReportDetail.Builder setReportPathPrefix(String value)

Prefix of the object name of each report's shard. This will have full prefix except the "extension" and "shard_id". For example, if the destination_path is {{report-config-id}}/dt={{datetime}}, the shard object name would be gs://my-insights/1A34-F2E456-12B456-1C3D/dt=2022-05-20T06:35/1A34-F2E456-12B456-1C3D_2022-05-20T06:35_5.csv and the value of report_path_prefix field would be gs://my-insights/1A34-F2E456-12B456-1C3D/dt=2022-05-20T06:35/1A34-F2E456-12B456-1C3D_2022-05-20T06:35_.

string report_path_prefix = 8;

Parameter
NameDescription
valueString

The reportPathPrefix to set.

Returns
TypeDescription
ReportDetail.Builder

This builder for chaining.

setReportPathPrefixBytes(ByteString value)

public ReportDetail.Builder setReportPathPrefixBytes(ByteString value)

Prefix of the object name of each report's shard. This will have full prefix except the "extension" and "shard_id". For example, if the destination_path is {{report-config-id}}/dt={{datetime}}, the shard object name would be gs://my-insights/1A34-F2E456-12B456-1C3D/dt=2022-05-20T06:35/1A34-F2E456-12B456-1C3D_2022-05-20T06:35_5.csv and the value of report_path_prefix field would be gs://my-insights/1A34-F2E456-12B456-1C3D/dt=2022-05-20T06:35/1A34-F2E456-12B456-1C3D_2022-05-20T06:35_.

string report_path_prefix = 8;

Parameter
NameDescription
valueByteString

The bytes for reportPathPrefix to set.

Returns
TypeDescription
ReportDetail.Builder

This builder for chaining.

setShardsCount(long value)

public ReportDetail.Builder setShardsCount(long value)

Total shards generated for the report.

int64 shards_count = 9;

Parameter
NameDescription
valuelong

The shardsCount to set.

Returns
TypeDescription
ReportDetail.Builder

This builder for chaining.

setSnapshotTime(Timestamp value)

public ReportDetail.Builder setSnapshotTime(Timestamp value)

The snapshot time. All the report data is referenced at this point of time.

.google.protobuf.Timestamp snapshot_time = 2;

Parameter
NameDescription
valueTimestamp
Returns
TypeDescription
ReportDetail.Builder

setSnapshotTime(Timestamp.Builder builderForValue)

public ReportDetail.Builder setSnapshotTime(Timestamp.Builder builderForValue)

The snapshot time. All the report data is referenced at this point of time.

.google.protobuf.Timestamp snapshot_time = 2;

Parameter
NameDescription
builderForValueBuilder
Returns
TypeDescription
ReportDetail.Builder

setStatus(Status value)

public ReportDetail.Builder setStatus(Status value)

Status of the ReportDetail.

.google.rpc.Status status = 4;

Parameter
NameDescription
valuecom.google.rpc.Status
Returns
TypeDescription
ReportDetail.Builder

setStatus(Status.Builder builderForValue)

public ReportDetail.Builder setStatus(Status.Builder builderForValue)

Status of the ReportDetail.

.google.rpc.Status status = 4;

Parameter
NameDescription
builderForValuecom.google.rpc.Status.Builder
Returns
TypeDescription
ReportDetail.Builder

setTargetDatetime(DateTime value)

public ReportDetail.Builder setTargetDatetime(DateTime value)

The date for which report is generated. The time part of target_datetime will be zero till we support multiple reports per day.

.google.type.DateTime target_datetime = 6;

Parameter
NameDescription
valuecom.google.type.DateTime
Returns
TypeDescription
ReportDetail.Builder

setTargetDatetime(DateTime.Builder builderForValue)

public ReportDetail.Builder setTargetDatetime(DateTime.Builder builderForValue)

The date for which report is generated. The time part of target_datetime will be zero till we support multiple reports per day.

.google.type.DateTime target_datetime = 6;

Parameter
NameDescription
builderForValuecom.google.type.DateTime.Builder
Returns
TypeDescription
ReportDetail.Builder

setUnknownFields(UnknownFieldSet unknownFields)

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