Class ReportDetail.Builder
java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessage.Builder<ReportDetail.Builder>
com.google.cloud.storageinsights.v1.ReportDetail.Builder
- All Implemented Interfaces:
ReportDetailOrBuilder,com.google.protobuf.Message.Builder,com.google.protobuf.MessageLite.Builder,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,Cloneable
- Enclosing class:
- ReportDetail
public static final class ReportDetail.Builder
extends com.google.protobuf.GeneratedMessage.Builder<ReportDetail.Builder>
implements ReportDetailOrBuilder
Message describing ReportDetail object. ReportDetail represents metadata of generated reports for a ReportConfig. Next ID: 10Protobuf type
google.cloud.storageinsights.v1.ReportDetail-
Method Summary
Modifier and TypeMethodDescriptionbuild()clear()Name of resource.Metrics of the report.Prefix of the object name of each report's shard.Total shards generated for the report.The snapshot time.Status of the ReportDetail.The date for which report is generated.booleancontainsLabels(String key) Labels as key value pairsstatic final com.google.protobuf.Descriptors.Descriptorcom.google.protobuf.Descriptors.DescriptorDeprecated.intLabels as key value pairsLabels as key value pairsgetLabelsOrDefault(String key, String defaultValue) Labels as key value pairsgetLabelsOrThrow(String key) Labels as key value pairsDeprecated.getName()Name of resource.com.google.protobuf.ByteStringName of resource.Metrics of the report.Metrics of the report.Metrics of the report.Prefix of the object name of each report's shard.com.google.protobuf.ByteStringPrefix of the object name of each report's shard.longTotal shards generated for the report.com.google.protobuf.TimestampThe snapshot time.com.google.protobuf.Timestamp.BuilderThe snapshot time.com.google.protobuf.TimestampOrBuilderThe snapshot time.Status of the ReportDetail.Status of the ReportDetail.Status of the ReportDetail.The date for which report is generated.The date for which report is generated.The date for which report is generated.booleanMetrics of the report.booleanThe snapshot time.booleanStatus of the ReportDetail.booleanThe date for which report is generated.protected com.google.protobuf.GeneratedMessage.FieldAccessorTableprotected com.google.protobuf.MapFieldReflectionAccessorinternalGetMapFieldReflection(int number) protected com.google.protobuf.MapFieldReflectionAccessorinternalGetMutableMapFieldReflection(int number) final booleanmergeFrom(ReportDetail other) mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) mergeFrom(com.google.protobuf.Message other) Metrics of the report.mergeSnapshotTime(com.google.protobuf.Timestamp value) The snapshot time.mergeStatus(Status value) Status of the ReportDetail.mergeTargetDatetime(DateTime value) The date for which report is generated.putAllLabels(Map<String, String> values) Labels as key value pairsLabels as key value pairsremoveLabels(String key) Labels as key value pairsName of resource.setNameBytes(com.google.protobuf.ByteString value) Name of resource.Metrics of the report.setReportMetrics(ReportDetail.Metrics.Builder builderForValue) Metrics of the report.setReportPathPrefix(String value) Prefix of the object name of each report's shard.setReportPathPrefixBytes(com.google.protobuf.ByteString value) Prefix of the object name of each report's shard.setShardsCount(long value) Total shards generated for the report.setSnapshotTime(com.google.protobuf.Timestamp value) The snapshot time.setSnapshotTime(com.google.protobuf.Timestamp.Builder builderForValue) The snapshot time.Status of the ReportDetail.setStatus(Status.Builder builderForValue) Status of the ReportDetail.setTargetDatetime(DateTime value) The date for which report is generated.setTargetDatetime(DateTime.Builder builderForValue) The date for which report is generated.Methods inherited from class com.google.protobuf.GeneratedMessage.Builder
addRepeatedField, clearField, clearOneof, clone, getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, internalGetMapField, internalGetMutableMapField, isClean, markClean, mergeUnknownFields, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, setField, setRepeatedField, setUnknownFields, setUnknownFieldSetBuilder, setUnknownFieldsProto3Methods inherited from class com.google.protobuf.AbstractMessage.Builder
findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toStringMethods inherited from class com.google.protobuf.AbstractMessageLite.Builder
addAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, newUninitializedMessageExceptionMethods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface com.google.protobuf.Message.Builder
mergeDelimitedFrom, mergeDelimitedFromMethods inherited from interface com.google.protobuf.MessageLite.Builder
mergeFromMethods inherited from interface com.google.protobuf.MessageOrBuilder
findInitializationErrors, getAllFields, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
-
Method Details
-
getDescriptor
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() -
internalGetMapFieldReflection
protected com.google.protobuf.MapFieldReflectionAccessor internalGetMapFieldReflection(int number) - Overrides:
internalGetMapFieldReflectionin classcom.google.protobuf.GeneratedMessage.Builder<ReportDetail.Builder>
-
internalGetMutableMapFieldReflection
protected com.google.protobuf.MapFieldReflectionAccessor internalGetMutableMapFieldReflection(int number) - Overrides:
internalGetMutableMapFieldReflectionin classcom.google.protobuf.GeneratedMessage.Builder<ReportDetail.Builder>
-
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()- Specified by:
internalGetFieldAccessorTablein classcom.google.protobuf.GeneratedMessage.Builder<ReportDetail.Builder>
-
clear
- Specified by:
clearin interfacecom.google.protobuf.Message.Builder- Specified by:
clearin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
clearin classcom.google.protobuf.GeneratedMessage.Builder<ReportDetail.Builder>
-
getDescriptorForType
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.Message.Builder- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.MessageOrBuilder- Overrides:
getDescriptorForTypein classcom.google.protobuf.GeneratedMessage.Builder<ReportDetail.Builder>
-
getDefaultInstanceForType
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-
build
- Specified by:
buildin interfacecom.google.protobuf.Message.Builder- Specified by:
buildin interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
- Specified by:
buildPartialin interfacecom.google.protobuf.Message.Builder- Specified by:
buildPartialin interfacecom.google.protobuf.MessageLite.Builder
-
mergeFrom
- Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<ReportDetail.Builder>
-
mergeFrom
-
isInitialized
public final boolean isInitialized()- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessage.Builder<ReportDetail.Builder>
-
mergeFrom
public ReportDetail.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException - Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Specified by:
mergeFromin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<ReportDetail.Builder>- Throws:
IOException
-
getName
Name of resource. It will be of form projects/<project>/locations/<location>/reportConfigs/<report-config-id>/reportDetails/<report-detail-id>.
string name = 1;- Specified by:
getNamein interfaceReportDetailOrBuilder- Returns:
- The name.
-
getNameBytes
public com.google.protobuf.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;- Specified by:
getNameBytesin interfaceReportDetailOrBuilder- Returns:
- The bytes for name.
-
setName
Name of resource. It will be of form projects/<project>/locations/<location>/reportConfigs/<report-config-id>/reportDetails/<report-detail-id>.
string name = 1;- Parameters:
value- The name to set.- Returns:
- This builder for chaining.
-
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:
- This builder for chaining.
-
setNameBytes
Name of resource. It will be of form projects/<project>/locations/<location>/reportConfigs/<report-config-id>/reportDetails/<report-detail-id>.
string name = 1;- Parameters:
value- The bytes for name to set.- Returns:
- This builder for chaining.
-
hasSnapshotTime
public boolean hasSnapshotTime()The snapshot time. All the report data is referenced at this point of time.
.google.protobuf.Timestamp snapshot_time = 2;- Specified by:
hasSnapshotTimein interfaceReportDetailOrBuilder- Returns:
- Whether the snapshotTime field is set.
-
getSnapshotTime
public com.google.protobuf.Timestamp getSnapshotTime()The snapshot time. All the report data is referenced at this point of time.
.google.protobuf.Timestamp snapshot_time = 2;- Specified by:
getSnapshotTimein interfaceReportDetailOrBuilder- Returns:
- The snapshotTime.
-
setSnapshotTime
The snapshot time. All the report data is referenced at this point of time.
.google.protobuf.Timestamp snapshot_time = 2; -
setSnapshotTime
The snapshot time. All the report data is referenced at this point of time.
.google.protobuf.Timestamp snapshot_time = 2; -
mergeSnapshotTime
The snapshot time. All the report data is referenced at this point of time.
.google.protobuf.Timestamp snapshot_time = 2; -
clearSnapshotTime
The snapshot time. All the report data is referenced at this point of time.
.google.protobuf.Timestamp snapshot_time = 2; -
getSnapshotTimeBuilder
public com.google.protobuf.Timestamp.Builder getSnapshotTimeBuilder()The snapshot time. All the report data is referenced at this point of time.
.google.protobuf.Timestamp snapshot_time = 2; -
getSnapshotTimeOrBuilder
public com.google.protobuf.TimestampOrBuilder getSnapshotTimeOrBuilder()The snapshot time. All the report data is referenced at this point of time.
.google.protobuf.Timestamp snapshot_time = 2;- Specified by:
getSnapshotTimeOrBuilderin interfaceReportDetailOrBuilder
-
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;- Specified by:
getReportPathPrefixin interfaceReportDetailOrBuilder- Returns:
- The reportPathPrefix.
-
getReportPathPrefixBytes
public com.google.protobuf.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;- Specified by:
getReportPathPrefixBytesin interfaceReportDetailOrBuilder- Returns:
- The bytes for reportPathPrefix.
-
setReportPathPrefix
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;- Parameters:
value- The reportPathPrefix to set.- Returns:
- This builder for chaining.
-
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:
- This builder for chaining.
-
setReportPathPrefixBytes
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;- Parameters:
value- The bytes for reportPathPrefix to set.- Returns:
- This builder for chaining.
-
getShardsCount
public long getShardsCount()Total shards generated for the report.
int64 shards_count = 9;- Specified by:
getShardsCountin interfaceReportDetailOrBuilder- Returns:
- The shardsCount.
-
setShardsCount
Total shards generated for the report.
int64 shards_count = 9;- Parameters:
value- The shardsCount to set.- Returns:
- This builder for chaining.
-
clearShardsCount
Total shards generated for the report.
int64 shards_count = 9;- Returns:
- This builder for chaining.
-
hasStatus
public boolean hasStatus()Status of the ReportDetail.
.google.rpc.Status status = 4;- Specified by:
hasStatusin interfaceReportDetailOrBuilder- Returns:
- Whether the status field is set.
-
getStatus
Status of the ReportDetail.
.google.rpc.Status status = 4;- Specified by:
getStatusin interfaceReportDetailOrBuilder- Returns:
- The status.
-
setStatus
Status of the ReportDetail.
.google.rpc.Status status = 4; -
setStatus
Status of the ReportDetail.
.google.rpc.Status status = 4; -
mergeStatus
Status of the ReportDetail.
.google.rpc.Status status = 4; -
clearStatus
Status of the ReportDetail.
.google.rpc.Status status = 4; -
getStatusBuilder
Status of the ReportDetail.
.google.rpc.Status status = 4; -
getStatusOrBuilder
Status of the ReportDetail.
.google.rpc.Status status = 4;- Specified by:
getStatusOrBuilderin interfaceReportDetailOrBuilder
-
getLabelsCount
public int getLabelsCount()Description copied from interface:ReportDetailOrBuilderLabels as key value pairs
map<string, string> labels = 5;- Specified by:
getLabelsCountin interfaceReportDetailOrBuilder
-
containsLabels
Labels as key value pairs
map<string, string> labels = 5;- Specified by:
containsLabelsin interfaceReportDetailOrBuilder
-
getLabels
Deprecated.UsegetLabelsMap()instead.- Specified by:
getLabelsin interfaceReportDetailOrBuilder
-
getLabelsMap
Labels as key value pairs
map<string, string> labels = 5;- Specified by:
getLabelsMapin interfaceReportDetailOrBuilder
-
getLabelsOrDefault
Labels as key value pairs
map<string, string> labels = 5;- Specified by:
getLabelsOrDefaultin interfaceReportDetailOrBuilder
-
getLabelsOrThrow
Labels as key value pairs
map<string, string> labels = 5;- Specified by:
getLabelsOrThrowin interfaceReportDetailOrBuilder
-
clearLabels
-
removeLabels
Labels as key value pairs
map<string, string> labels = 5; -
getMutableLabels
Deprecated.Use alternate mutation accessors instead. -
putLabels
Labels as key value pairs
map<string, string> labels = 5; -
putAllLabels
Labels as key value pairs
map<string, string> labels = 5; -
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;- Specified by:
hasTargetDatetimein interfaceReportDetailOrBuilder- Returns:
- Whether the targetDatetime field is set.
-
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;- Specified by:
getTargetDatetimein interfaceReportDetailOrBuilder- Returns:
- The targetDatetime.
-
setTargetDatetime
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; -
setTargetDatetime
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; -
mergeTargetDatetime
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; -
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; -
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; -
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;- Specified by:
getTargetDatetimeOrBuilderin interfaceReportDetailOrBuilder
-
hasReportMetrics
public boolean hasReportMetrics()Metrics of the report.
.google.cloud.storageinsights.v1.ReportDetail.Metrics report_metrics = 7;- Specified by:
hasReportMetricsin interfaceReportDetailOrBuilder- Returns:
- Whether the reportMetrics field is set.
-
getReportMetrics
Metrics of the report.
.google.cloud.storageinsights.v1.ReportDetail.Metrics report_metrics = 7;- Specified by:
getReportMetricsin interfaceReportDetailOrBuilder- Returns:
- The reportMetrics.
-
setReportMetrics
Metrics of the report.
.google.cloud.storageinsights.v1.ReportDetail.Metrics report_metrics = 7; -
setReportMetrics
Metrics of the report.
.google.cloud.storageinsights.v1.ReportDetail.Metrics report_metrics = 7; -
mergeReportMetrics
Metrics of the report.
.google.cloud.storageinsights.v1.ReportDetail.Metrics report_metrics = 7; -
clearReportMetrics
Metrics of the report.
.google.cloud.storageinsights.v1.ReportDetail.Metrics report_metrics = 7; -
getReportMetricsBuilder
Metrics of the report.
.google.cloud.storageinsights.v1.ReportDetail.Metrics report_metrics = 7; -
getReportMetricsOrBuilder
Metrics of the report.
.google.cloud.storageinsights.v1.ReportDetail.Metrics report_metrics = 7;- Specified by:
getReportMetricsOrBuilderin interfaceReportDetailOrBuilder
-