Class ReportDetail.Builder (0.8.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
Type Description
Descriptor

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public ReportDetail build()
Returns
Type Description
ReportDetail

buildPartial()

public ReportDetail buildPartial()
Returns
Type Description
ReportDetail

clear()

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

clearField(Descriptors.FieldDescriptor field)

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

clearLabels()

public ReportDetail.Builder clearLabels()
Returns
Type Description
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
Type Description
ReportDetail.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

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

clearReportMetrics()

public ReportDetail.Builder clearReportMetrics()

Metrics of the report.

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

Returns
Type Description
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
Type Description
ReportDetail.Builder

This builder for chaining.

clearShardsCount()

public ReportDetail.Builder clearShardsCount()

Total shards generated for the report.

int64 shards_count = 9;

Returns
Type Description
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
Type Description
ReportDetail.Builder

clearStatus()

public ReportDetail.Builder clearStatus()

Status of the ReportDetail.

.google.rpc.Status status = 4;

Returns
Type Description
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
Type Description
ReportDetail.Builder

clone()

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

containsLabels(String key)

public boolean containsLabels(String key)

Labels as key value pairs

map<string, string> labels = 5;

Parameter
Name Description
key String
Returns
Type Description
boolean

getDefaultInstanceForType()

public ReportDetail getDefaultInstanceForType()
Returns
Type Description
ReportDetail

getDescriptorForType()

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

getLabels()

public Map<String,String> getLabels()

Use #getLabelsMap() instead.

Returns
Type Description
Map<String,String>

getLabelsCount()

public int getLabelsCount()

Labels as key value pairs

map<string, string> labels = 5;

Returns
Type Description
int

getLabelsMap()

public Map<String,String> getLabelsMap()

Labels as key value pairs

map<string, string> labels = 5;

Returns
Type Description
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
Name Description
key String
defaultValue String
Returns
Type Description
String

getLabelsOrThrow(String key)

public String getLabelsOrThrow(String key)

Labels as key value pairs

map<string, string> labels = 5;

Parameter
Name Description
key String
Returns
Type Description
String

getMutableLabels()

public Map<String,String> getMutableLabels()

Use alternate mutation accessors instead.

Returns
Type Description
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
Type Description
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
Type Description
ByteString

The bytes for name.

getReportMetrics()

public ReportDetail.Metrics getReportMetrics()

Metrics of the report.

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

Returns
Type Description
ReportDetail.Metrics

The reportMetrics.

getReportMetricsBuilder()

public ReportDetail.Metrics.Builder getReportMetricsBuilder()

Metrics of the report.

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

Returns
Type Description
ReportDetail.Metrics.Builder

getReportMetricsOrBuilder()

public ReportDetail.MetricsOrBuilder getReportMetricsOrBuilder()

Metrics of the report.

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

Returns
Type Description
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
Type Description
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
Type Description
ByteString

The bytes for reportPathPrefix.

getShardsCount()

public long getShardsCount()

Total shards generated for the report.

int64 shards_count = 9;

Returns
Type Description
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
Type Description
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
Type Description
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
Type Description
TimestampOrBuilder

getStatus()

public Status getStatus()

Status of the ReportDetail.

.google.rpc.Status status = 4;

Returns
Type Description
com.google.rpc.Status

The status.

getStatusBuilder()

public Status.Builder getStatusBuilder()

Status of the ReportDetail.

.google.rpc.Status status = 4;

Returns
Type Description
com.google.rpc.Status.Builder

getStatusOrBuilder()

public StatusOrBuilder getStatusOrBuilder()

Status of the ReportDetail.

.google.rpc.Status status = 4;

Returns
Type Description
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
Type Description
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
Type Description
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
Type Description
com.google.type.DateTimeOrBuilder

hasReportMetrics()

public boolean hasReportMetrics()

Metrics of the report.

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

Returns
Type Description
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
Type Description
boolean

Whether the snapshotTime field is set.

hasStatus()

public boolean hasStatus()

Status of the ReportDetail.

.google.rpc.Status status = 4;

Returns
Type Description
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
Type Description
boolean

Whether the targetDatetime field is set.

internalGetFieldAccessorTable()

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

internalGetMapField(int number)

protected MapField internalGetMapField(int number)
Parameter
Name Description
number int
Returns
Type Description
MapField
Overrides

internalGetMutableMapField(int number)

protected MapField internalGetMutableMapField(int number)
Parameter
Name Description
number int
Returns
Type Description
MapField
Overrides

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(ReportDetail other)

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

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

public ReportDetail.Builder mergeFrom(Message other)
Parameter
Name Description
other Message
Returns
Type Description
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
Name Description
value ReportDetail.Metrics
Returns
Type Description
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
Name Description
value Timestamp
Returns
Type Description
ReportDetail.Builder

mergeStatus(Status value)

public ReportDetail.Builder mergeStatus(Status value)

Status of the ReportDetail.

.google.rpc.Status status = 4;

Parameter
Name Description
value com.google.rpc.Status
Returns
Type Description
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
Name Description
value com.google.type.DateTime
Returns
Type Description
ReportDetail.Builder

mergeUnknownFields(UnknownFieldSet unknownFields)

public final ReportDetail.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
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
Name Description
values Map<String,String>
Returns
Type Description
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
Name Description
key String
value String
Returns
Type Description
ReportDetail.Builder

removeLabels(String key)

public ReportDetail.Builder removeLabels(String key)

Labels as key value pairs

map<string, string> labels = 5;

Parameter
Name Description
key String
Returns
Type Description
ReportDetail.Builder

setField(Descriptors.FieldDescriptor field, Object value)

public ReportDetail.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
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
Name Description
value String

The name to set.

Returns
Type Description
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
Name Description
value ByteString

The bytes for name to set.

Returns
Type Description
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
Name Description
field FieldDescriptor
index int
value Object
Returns
Type Description
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
Name Description
value ReportDetail.Metrics
Returns
Type Description
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
Name Description
builderForValue ReportDetail.Metrics.Builder
Returns
Type Description
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
Name Description
value String

The reportPathPrefix to set.

Returns
Type Description
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
Name Description
value ByteString

The bytes for reportPathPrefix to set.

Returns
Type Description
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
Name Description
value long

The shardsCount to set.

Returns
Type Description
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
Name Description
value Timestamp
Returns
Type Description
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
Name Description
builderForValue Builder
Returns
Type Description
ReportDetail.Builder

setStatus(Status value)

public ReportDetail.Builder setStatus(Status value)

Status of the ReportDetail.

.google.rpc.Status status = 4;

Parameter
Name Description
value com.google.rpc.Status
Returns
Type Description
ReportDetail.Builder

setStatus(Status.Builder builderForValue)

public ReportDetail.Builder setStatus(Status.Builder builderForValue)

Status of the ReportDetail.

.google.rpc.Status status = 4;

Parameter
Name Description
builderForValue com.google.rpc.Status.Builder
Returns
Type Description
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
Name Description
value com.google.type.DateTime
Returns
Type Description
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
Name Description
builderForValue com.google.type.DateTime.Builder
Returns
Type Description
ReportDetail.Builder

setUnknownFields(UnknownFieldSet unknownFields)

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