Class ReportingDataAnnotation.Builder
java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessage.Builder<ReportingDataAnnotation.Builder>
com.google.analytics.admin.v1alpha.ReportingDataAnnotation.Builder
- All Implemented Interfaces:
ReportingDataAnnotationOrBuilder,com.google.protobuf.Message.Builder,com.google.protobuf.MessageLite.Builder,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,Cloneable
- Enclosing class:
- ReportingDataAnnotation
public static final class ReportingDataAnnotation.Builder
extends com.google.protobuf.GeneratedMessage.Builder<ReportingDataAnnotation.Builder>
implements ReportingDataAnnotationOrBuilder
A Reporting Data Annotation is a comment connected to certain dates for reporting data.Protobuf type
google.analytics.admin.v1alpha.ReportingDataAnnotation-
Method Summary
Modifier and TypeMethodDescriptionbuild()clear()If set, the Reporting Data Annotation is for a specific date represented by this field.If set, the Reporting Data Annotation is for a range of dates represented by this field.Required.Optional.Required.Output only.Required.If set, the Reporting Data Annotation is for a specific date represented by this field.If set, the Reporting Data Annotation is for a specific date represented by this field.If set, the Reporting Data Annotation is for a specific date represented by this field.If set, the Reporting Data Annotation is for a range of dates represented by this field.If set, the Reporting Data Annotation is for a range of dates represented by this field.If set, the Reporting Data Annotation is for a range of dates represented by this field.getColor()Required.intRequired.Optional.com.google.protobuf.ByteStringOptional.static final com.google.protobuf.Descriptors.Descriptorcom.google.protobuf.Descriptors.DescriptorgetName()Required.com.google.protobuf.ByteStringRequired.booleanOutput only.getTitle()Required.com.google.protobuf.ByteStringRequired.booleanIf set, the Reporting Data Annotation is for a specific date represented by this field.booleanIf set, the Reporting Data Annotation is for a range of dates represented by this field.protected com.google.protobuf.GeneratedMessage.FieldAccessorTablefinal booleanmergeAnnotationDate(Date value) If set, the Reporting Data Annotation is for a specific date represented by this field.If set, the Reporting Data Annotation is for a range of dates represented by this field.mergeFrom(ReportingDataAnnotation other) mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) mergeFrom(com.google.protobuf.Message other) setAnnotationDate(Date value) If set, the Reporting Data Annotation is for a specific date represented by this field.setAnnotationDate(Date.Builder builderForValue) If set, the Reporting Data Annotation is for a specific date represented by this field.If set, the Reporting Data Annotation is for a range of dates represented by this field.setAnnotationDateRange(ReportingDataAnnotation.DateRange.Builder builderForValue) If set, the Reporting Data Annotation is for a range of dates represented by this field.Required.setColorValue(int value) Required.setDescription(String value) Optional.setDescriptionBytes(com.google.protobuf.ByteString value) Optional.Required.setNameBytes(com.google.protobuf.ByteString value) Required.setSystemGenerated(boolean value) Output only.Required.setTitleBytes(com.google.protobuf.ByteString value) Required.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, internalGetMapFieldReflection, internalGetMutableMapField, internalGetMutableMapFieldReflection, 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() -
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()- Specified by:
internalGetFieldAccessorTablein classcom.google.protobuf.GeneratedMessage.Builder<ReportingDataAnnotation.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<ReportingDataAnnotation.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<ReportingDataAnnotation.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<ReportingDataAnnotation.Builder>
-
mergeFrom
-
isInitialized
public final boolean isInitialized()- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessage.Builder<ReportingDataAnnotation.Builder>
-
mergeFrom
public ReportingDataAnnotation.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<ReportingDataAnnotation.Builder>- Throws:
IOException
-
getTargetCase
- Specified by:
getTargetCasein interfaceReportingDataAnnotationOrBuilder
-
clearTarget
-
hasAnnotationDate
public boolean hasAnnotationDate()If set, the Reporting Data Annotation is for a specific date represented by this field. The date must be a valid date with year, month and day set. The date may be in the past, present, or future.
.google.type.Date annotation_date = 4;- Specified by:
hasAnnotationDatein interfaceReportingDataAnnotationOrBuilder- Returns:
- Whether the annotationDate field is set.
-
getAnnotationDate
If set, the Reporting Data Annotation is for a specific date represented by this field. The date must be a valid date with year, month and day set. The date may be in the past, present, or future.
.google.type.Date annotation_date = 4;- Specified by:
getAnnotationDatein interfaceReportingDataAnnotationOrBuilder- Returns:
- The annotationDate.
-
setAnnotationDate
If set, the Reporting Data Annotation is for a specific date represented by this field. The date must be a valid date with year, month and day set. The date may be in the past, present, or future.
.google.type.Date annotation_date = 4; -
setAnnotationDate
If set, the Reporting Data Annotation is for a specific date represented by this field. The date must be a valid date with year, month and day set. The date may be in the past, present, or future.
.google.type.Date annotation_date = 4; -
mergeAnnotationDate
If set, the Reporting Data Annotation is for a specific date represented by this field. The date must be a valid date with year, month and day set. The date may be in the past, present, or future.
.google.type.Date annotation_date = 4; -
clearAnnotationDate
If set, the Reporting Data Annotation is for a specific date represented by this field. The date must be a valid date with year, month and day set. The date may be in the past, present, or future.
.google.type.Date annotation_date = 4; -
getAnnotationDateBuilder
If set, the Reporting Data Annotation is for a specific date represented by this field. The date must be a valid date with year, month and day set. The date may be in the past, present, or future.
.google.type.Date annotation_date = 4; -
getAnnotationDateOrBuilder
If set, the Reporting Data Annotation is for a specific date represented by this field. The date must be a valid date with year, month and day set. The date may be in the past, present, or future.
.google.type.Date annotation_date = 4;- Specified by:
getAnnotationDateOrBuilderin interfaceReportingDataAnnotationOrBuilder
-
hasAnnotationDateRange
public boolean hasAnnotationDateRange()If set, the Reporting Data Annotation is for a range of dates represented by this field.
.google.analytics.admin.v1alpha.ReportingDataAnnotation.DateRange annotation_date_range = 5;- Specified by:
hasAnnotationDateRangein interfaceReportingDataAnnotationOrBuilder- Returns:
- Whether the annotationDateRange field is set.
-
getAnnotationDateRange
If set, the Reporting Data Annotation is for a range of dates represented by this field.
.google.analytics.admin.v1alpha.ReportingDataAnnotation.DateRange annotation_date_range = 5;- Specified by:
getAnnotationDateRangein interfaceReportingDataAnnotationOrBuilder- Returns:
- The annotationDateRange.
-
setAnnotationDateRange
public ReportingDataAnnotation.Builder setAnnotationDateRange(ReportingDataAnnotation.DateRange value) If set, the Reporting Data Annotation is for a range of dates represented by this field.
.google.analytics.admin.v1alpha.ReportingDataAnnotation.DateRange annotation_date_range = 5; -
setAnnotationDateRange
public ReportingDataAnnotation.Builder setAnnotationDateRange(ReportingDataAnnotation.DateRange.Builder builderForValue) If set, the Reporting Data Annotation is for a range of dates represented by this field.
.google.analytics.admin.v1alpha.ReportingDataAnnotation.DateRange annotation_date_range = 5; -
mergeAnnotationDateRange
public ReportingDataAnnotation.Builder mergeAnnotationDateRange(ReportingDataAnnotation.DateRange value) If set, the Reporting Data Annotation is for a range of dates represented by this field.
.google.analytics.admin.v1alpha.ReportingDataAnnotation.DateRange annotation_date_range = 5; -
clearAnnotationDateRange
If set, the Reporting Data Annotation is for a range of dates represented by this field.
.google.analytics.admin.v1alpha.ReportingDataAnnotation.DateRange annotation_date_range = 5; -
getAnnotationDateRangeBuilder
If set, the Reporting Data Annotation is for a range of dates represented by this field.
.google.analytics.admin.v1alpha.ReportingDataAnnotation.DateRange annotation_date_range = 5; -
getAnnotationDateRangeOrBuilder
If set, the Reporting Data Annotation is for a range of dates represented by this field.
.google.analytics.admin.v1alpha.ReportingDataAnnotation.DateRange annotation_date_range = 5;- Specified by:
getAnnotationDateRangeOrBuilderin interfaceReportingDataAnnotationOrBuilder
-
getName
Required. Identifier. Resource name of this Reporting Data Annotation. Format: 'properties/{property_id}/reportingDataAnnotations/{reporting_data_annotation}' Format: 'properties/123/reportingDataAnnotations/456'string name = 1 [(.google.api.field_behavior) = IDENTIFIER, (.google.api.field_behavior) = REQUIRED];- Specified by:
getNamein interfaceReportingDataAnnotationOrBuilder- Returns:
- The name.
-
getNameBytes
public com.google.protobuf.ByteString getNameBytes()Required. Identifier. Resource name of this Reporting Data Annotation. Format: 'properties/{property_id}/reportingDataAnnotations/{reporting_data_annotation}' Format: 'properties/123/reportingDataAnnotations/456'string name = 1 [(.google.api.field_behavior) = IDENTIFIER, (.google.api.field_behavior) = REQUIRED];- Specified by:
getNameBytesin interfaceReportingDataAnnotationOrBuilder- Returns:
- The bytes for name.
-
setName
Required. Identifier. Resource name of this Reporting Data Annotation. Format: 'properties/{property_id}/reportingDataAnnotations/{reporting_data_annotation}' Format: 'properties/123/reportingDataAnnotations/456'string name = 1 [(.google.api.field_behavior) = IDENTIFIER, (.google.api.field_behavior) = REQUIRED];- Parameters:
value- The name to set.- Returns:
- This builder for chaining.
-
clearName
Required. Identifier. Resource name of this Reporting Data Annotation. Format: 'properties/{property_id}/reportingDataAnnotations/{reporting_data_annotation}' Format: 'properties/123/reportingDataAnnotations/456'string name = 1 [(.google.api.field_behavior) = IDENTIFIER, (.google.api.field_behavior) = REQUIRED];- Returns:
- This builder for chaining.
-
setNameBytes
Required. Identifier. Resource name of this Reporting Data Annotation. Format: 'properties/{property_id}/reportingDataAnnotations/{reporting_data_annotation}' Format: 'properties/123/reportingDataAnnotations/456'string name = 1 [(.google.api.field_behavior) = IDENTIFIER, (.google.api.field_behavior) = REQUIRED];- Parameters:
value- The bytes for name to set.- Returns:
- This builder for chaining.
-
getTitle
Required. Human-readable title for this Reporting Data Annotation.
string title = 2 [(.google.api.field_behavior) = REQUIRED];- Specified by:
getTitlein interfaceReportingDataAnnotationOrBuilder- Returns:
- The title.
-
getTitleBytes
public com.google.protobuf.ByteString getTitleBytes()Required. Human-readable title for this Reporting Data Annotation.
string title = 2 [(.google.api.field_behavior) = REQUIRED];- Specified by:
getTitleBytesin interfaceReportingDataAnnotationOrBuilder- Returns:
- The bytes for title.
-
setTitle
Required. Human-readable title for this Reporting Data Annotation.
string title = 2 [(.google.api.field_behavior) = REQUIRED];- Parameters:
value- The title to set.- Returns:
- This builder for chaining.
-
clearTitle
Required. Human-readable title for this Reporting Data Annotation.
string title = 2 [(.google.api.field_behavior) = REQUIRED];- Returns:
- This builder for chaining.
-
setTitleBytes
Required. Human-readable title for this Reporting Data Annotation.
string title = 2 [(.google.api.field_behavior) = REQUIRED];- Parameters:
value- The bytes for title to set.- Returns:
- This builder for chaining.
-
getDescription
Optional. Description for this Reporting Data Annotation.
string description = 3 [(.google.api.field_behavior) = OPTIONAL];- Specified by:
getDescriptionin interfaceReportingDataAnnotationOrBuilder- Returns:
- The description.
-
getDescriptionBytes
public com.google.protobuf.ByteString getDescriptionBytes()Optional. Description for this Reporting Data Annotation.
string description = 3 [(.google.api.field_behavior) = OPTIONAL];- Specified by:
getDescriptionBytesin interfaceReportingDataAnnotationOrBuilder- Returns:
- The bytes for description.
-
setDescription
Optional. Description for this Reporting Data Annotation.
string description = 3 [(.google.api.field_behavior) = OPTIONAL];- Parameters:
value- The description to set.- Returns:
- This builder for chaining.
-
clearDescription
Optional. Description for this Reporting Data Annotation.
string description = 3 [(.google.api.field_behavior) = OPTIONAL];- Returns:
- This builder for chaining.
-
setDescriptionBytes
Optional. Description for this Reporting Data Annotation.
string description = 3 [(.google.api.field_behavior) = OPTIONAL];- Parameters:
value- The bytes for description to set.- Returns:
- This builder for chaining.
-
getColorValue
public int getColorValue()Required. The color used for display of this Reporting Data Annotation.
.google.analytics.admin.v1alpha.ReportingDataAnnotation.Color color = 6 [(.google.api.field_behavior) = REQUIRED];- Specified by:
getColorValuein interfaceReportingDataAnnotationOrBuilder- Returns:
- The enum numeric value on the wire for color.
-
setColorValue
Required. The color used for display of this Reporting Data Annotation.
.google.analytics.admin.v1alpha.ReportingDataAnnotation.Color color = 6 [(.google.api.field_behavior) = REQUIRED];- Parameters:
value- The enum numeric value on the wire for color to set.- Returns:
- This builder for chaining.
-
getColor
Required. The color used for display of this Reporting Data Annotation.
.google.analytics.admin.v1alpha.ReportingDataAnnotation.Color color = 6 [(.google.api.field_behavior) = REQUIRED];- Specified by:
getColorin interfaceReportingDataAnnotationOrBuilder- Returns:
- The color.
-
setColor
Required. The color used for display of this Reporting Data Annotation.
.google.analytics.admin.v1alpha.ReportingDataAnnotation.Color color = 6 [(.google.api.field_behavior) = REQUIRED];- Parameters:
value- The color to set.- Returns:
- This builder for chaining.
-
clearColor
Required. The color used for display of this Reporting Data Annotation.
.google.analytics.admin.v1alpha.ReportingDataAnnotation.Color color = 6 [(.google.api.field_behavior) = REQUIRED];- Returns:
- This builder for chaining.
-
getSystemGenerated
public boolean getSystemGenerated()Output only. If true, this annotation was generated by the Google Analytics system. System-generated annotations cannot be updated or deleted.
bool system_generated = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];- Specified by:
getSystemGeneratedin interfaceReportingDataAnnotationOrBuilder- Returns:
- The systemGenerated.
-
setSystemGenerated
Output only. If true, this annotation was generated by the Google Analytics system. System-generated annotations cannot be updated or deleted.
bool system_generated = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];- Parameters:
value- The systemGenerated to set.- Returns:
- This builder for chaining.
-
clearSystemGenerated
Output only. If true, this annotation was generated by the Google Analytics system. System-generated annotations cannot be updated or deleted.
bool system_generated = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];- Returns:
- This builder for chaining.
-