Class DataStream.Builder (0.56.0)

public static final class DataStream.Builder extends GeneratedMessageV3.Builder<DataStream.Builder> implements DataStreamOrBuilder

A resource message representing a data stream.

Protobuf type google.analytics.admin.v1alpha.DataStream

Implements

DataStreamOrBuilder

Static Methods

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
Type Description
Descriptor

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public DataStream build()
Returns
Type Description
DataStream

buildPartial()

public DataStream buildPartial()
Returns
Type Description
DataStream

clear()

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

clearAndroidAppStreamData()

public DataStream.Builder clearAndroidAppStreamData()

Data specific to Android app streams. Must be populated if type is ANDROID_APP_DATA_STREAM.

.google.analytics.admin.v1alpha.DataStream.AndroidAppStreamData android_app_stream_data = 7;

Returns
Type Description
DataStream.Builder

clearCreateTime()

public DataStream.Builder clearCreateTime()

Output only. Time when this stream was originally created.

.google.protobuf.Timestamp create_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
DataStream.Builder

clearDisplayName()

public DataStream.Builder clearDisplayName()

Human-readable display name for the Data Stream.

Required for web data streams.

The max allowed display name length is 255 UTF-16 code units.

string display_name = 3;

Returns
Type Description
DataStream.Builder

This builder for chaining.

clearField(Descriptors.FieldDescriptor field)

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

clearIosAppStreamData()

public DataStream.Builder clearIosAppStreamData()

Data specific to iOS app streams. Must be populated if type is IOS_APP_DATA_STREAM.

.google.analytics.admin.v1alpha.DataStream.IosAppStreamData ios_app_stream_data = 8;

Returns
Type Description
DataStream.Builder

clearName()

public DataStream.Builder clearName()

Output only. Resource name of this Data Stream. Format: properties/{property_id}/dataStreams/{stream_id} Example: "properties/1000/dataStreams/2000"

string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
DataStream.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

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

clearStreamData()

public DataStream.Builder clearStreamData()
Returns
Type Description
DataStream.Builder

clearType()

public DataStream.Builder clearType()

Required. Immutable. The type of this DataStream resource.

.google.analytics.admin.v1alpha.DataStream.DataStreamType type = 2 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.field_behavior) = REQUIRED];

Returns
Type Description
DataStream.Builder

This builder for chaining.

clearUpdateTime()

public DataStream.Builder clearUpdateTime()

Output only. Time when stream payload fields were last updated.

.google.protobuf.Timestamp update_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
DataStream.Builder

clearWebStreamData()

public DataStream.Builder clearWebStreamData()

Data specific to web streams. Must be populated if type is WEB_DATA_STREAM.

.google.analytics.admin.v1alpha.DataStream.WebStreamData web_stream_data = 6;

Returns
Type Description
DataStream.Builder

clone()

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

getAndroidAppStreamData()

public DataStream.AndroidAppStreamData getAndroidAppStreamData()

Data specific to Android app streams. Must be populated if type is ANDROID_APP_DATA_STREAM.

.google.analytics.admin.v1alpha.DataStream.AndroidAppStreamData android_app_stream_data = 7;

Returns
Type Description
DataStream.AndroidAppStreamData

The androidAppStreamData.

getAndroidAppStreamDataBuilder()

public DataStream.AndroidAppStreamData.Builder getAndroidAppStreamDataBuilder()

Data specific to Android app streams. Must be populated if type is ANDROID_APP_DATA_STREAM.

.google.analytics.admin.v1alpha.DataStream.AndroidAppStreamData android_app_stream_data = 7;

Returns
Type Description
DataStream.AndroidAppStreamData.Builder

getAndroidAppStreamDataOrBuilder()

public DataStream.AndroidAppStreamDataOrBuilder getAndroidAppStreamDataOrBuilder()

Data specific to Android app streams. Must be populated if type is ANDROID_APP_DATA_STREAM.

.google.analytics.admin.v1alpha.DataStream.AndroidAppStreamData android_app_stream_data = 7;

Returns
Type Description
DataStream.AndroidAppStreamDataOrBuilder

getCreateTime()

public Timestamp getCreateTime()

Output only. Time when this stream was originally created.

.google.protobuf.Timestamp create_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
Timestamp

The createTime.

getCreateTimeBuilder()

public Timestamp.Builder getCreateTimeBuilder()

Output only. Time when this stream was originally created.

.google.protobuf.Timestamp create_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
Builder

getCreateTimeOrBuilder()

public TimestampOrBuilder getCreateTimeOrBuilder()

Output only. Time when this stream was originally created.

.google.protobuf.Timestamp create_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
TimestampOrBuilder

getDefaultInstanceForType()

public DataStream getDefaultInstanceForType()
Returns
Type Description
DataStream

getDescriptorForType()

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

getDisplayName()

public String getDisplayName()

Human-readable display name for the Data Stream.

Required for web data streams.

The max allowed display name length is 255 UTF-16 code units.

string display_name = 3;

Returns
Type Description
String

The displayName.

getDisplayNameBytes()

public ByteString getDisplayNameBytes()

Human-readable display name for the Data Stream.

Required for web data streams.

The max allowed display name length is 255 UTF-16 code units.

string display_name = 3;

Returns
Type Description
ByteString

The bytes for displayName.

getIosAppStreamData()

public DataStream.IosAppStreamData getIosAppStreamData()

Data specific to iOS app streams. Must be populated if type is IOS_APP_DATA_STREAM.

.google.analytics.admin.v1alpha.DataStream.IosAppStreamData ios_app_stream_data = 8;

Returns
Type Description
DataStream.IosAppStreamData

The iosAppStreamData.

getIosAppStreamDataBuilder()

public DataStream.IosAppStreamData.Builder getIosAppStreamDataBuilder()

Data specific to iOS app streams. Must be populated if type is IOS_APP_DATA_STREAM.

.google.analytics.admin.v1alpha.DataStream.IosAppStreamData ios_app_stream_data = 8;

Returns
Type Description
DataStream.IosAppStreamData.Builder

getIosAppStreamDataOrBuilder()

public DataStream.IosAppStreamDataOrBuilder getIosAppStreamDataOrBuilder()

Data specific to iOS app streams. Must be populated if type is IOS_APP_DATA_STREAM.

.google.analytics.admin.v1alpha.DataStream.IosAppStreamData ios_app_stream_data = 8;

Returns
Type Description
DataStream.IosAppStreamDataOrBuilder

getName()

public String getName()

Output only. Resource name of this Data Stream. Format: properties/{property_id}/dataStreams/{stream_id} Example: "properties/1000/dataStreams/2000"

string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
String

The name.

getNameBytes()

public ByteString getNameBytes()

Output only. Resource name of this Data Stream. Format: properties/{property_id}/dataStreams/{stream_id} Example: "properties/1000/dataStreams/2000"

string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
ByteString

The bytes for name.

getStreamDataCase()

public DataStream.StreamDataCase getStreamDataCase()
Returns
Type Description
DataStream.StreamDataCase

getType()

public DataStream.DataStreamType getType()

Required. Immutable. The type of this DataStream resource.

.google.analytics.admin.v1alpha.DataStream.DataStreamType type = 2 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.field_behavior) = REQUIRED];

Returns
Type Description
DataStream.DataStreamType

The type.

getTypeValue()

public int getTypeValue()

Required. Immutable. The type of this DataStream resource.

.google.analytics.admin.v1alpha.DataStream.DataStreamType type = 2 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.field_behavior) = REQUIRED];

Returns
Type Description
int

The enum numeric value on the wire for type.

getUpdateTime()

public Timestamp getUpdateTime()

Output only. Time when stream payload fields were last updated.

.google.protobuf.Timestamp update_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
Timestamp

The updateTime.

getUpdateTimeBuilder()

public Timestamp.Builder getUpdateTimeBuilder()

Output only. Time when stream payload fields were last updated.

.google.protobuf.Timestamp update_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
Builder

getUpdateTimeOrBuilder()

public TimestampOrBuilder getUpdateTimeOrBuilder()

Output only. Time when stream payload fields were last updated.

.google.protobuf.Timestamp update_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
TimestampOrBuilder

getWebStreamData()

public DataStream.WebStreamData getWebStreamData()

Data specific to web streams. Must be populated if type is WEB_DATA_STREAM.

.google.analytics.admin.v1alpha.DataStream.WebStreamData web_stream_data = 6;

Returns
Type Description
DataStream.WebStreamData

The webStreamData.

getWebStreamDataBuilder()

public DataStream.WebStreamData.Builder getWebStreamDataBuilder()

Data specific to web streams. Must be populated if type is WEB_DATA_STREAM.

.google.analytics.admin.v1alpha.DataStream.WebStreamData web_stream_data = 6;

Returns
Type Description
DataStream.WebStreamData.Builder

getWebStreamDataOrBuilder()

public DataStream.WebStreamDataOrBuilder getWebStreamDataOrBuilder()

Data specific to web streams. Must be populated if type is WEB_DATA_STREAM.

.google.analytics.admin.v1alpha.DataStream.WebStreamData web_stream_data = 6;

Returns
Type Description
DataStream.WebStreamDataOrBuilder

hasAndroidAppStreamData()

public boolean hasAndroidAppStreamData()

Data specific to Android app streams. Must be populated if type is ANDROID_APP_DATA_STREAM.

.google.analytics.admin.v1alpha.DataStream.AndroidAppStreamData android_app_stream_data = 7;

Returns
Type Description
boolean

Whether the androidAppStreamData field is set.

hasCreateTime()

public boolean hasCreateTime()

Output only. Time when this stream was originally created.

.google.protobuf.Timestamp create_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
boolean

Whether the createTime field is set.

hasIosAppStreamData()

public boolean hasIosAppStreamData()

Data specific to iOS app streams. Must be populated if type is IOS_APP_DATA_STREAM.

.google.analytics.admin.v1alpha.DataStream.IosAppStreamData ios_app_stream_data = 8;

Returns
Type Description
boolean

Whether the iosAppStreamData field is set.

hasUpdateTime()

public boolean hasUpdateTime()

Output only. Time when stream payload fields were last updated.

.google.protobuf.Timestamp update_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
boolean

Whether the updateTime field is set.

hasWebStreamData()

public boolean hasWebStreamData()

Data specific to web streams. Must be populated if type is WEB_DATA_STREAM.

.google.analytics.admin.v1alpha.DataStream.WebStreamData web_stream_data = 6;

Returns
Type Description
boolean

Whether the webStreamData field is set.

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeAndroidAppStreamData(DataStream.AndroidAppStreamData value)

public DataStream.Builder mergeAndroidAppStreamData(DataStream.AndroidAppStreamData value)

Data specific to Android app streams. Must be populated if type is ANDROID_APP_DATA_STREAM.

.google.analytics.admin.v1alpha.DataStream.AndroidAppStreamData android_app_stream_data = 7;

Parameter
Name Description
value DataStream.AndroidAppStreamData
Returns
Type Description
DataStream.Builder

mergeCreateTime(Timestamp value)

public DataStream.Builder mergeCreateTime(Timestamp value)

Output only. Time when this stream was originally created.

.google.protobuf.Timestamp create_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
value Timestamp
Returns
Type Description
DataStream.Builder

mergeFrom(DataStream other)

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

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

public DataStream.Builder mergeFrom(Message other)
Parameter
Name Description
other Message
Returns
Type Description
DataStream.Builder
Overrides

mergeIosAppStreamData(DataStream.IosAppStreamData value)

public DataStream.Builder mergeIosAppStreamData(DataStream.IosAppStreamData value)

Data specific to iOS app streams. Must be populated if type is IOS_APP_DATA_STREAM.

.google.analytics.admin.v1alpha.DataStream.IosAppStreamData ios_app_stream_data = 8;

Parameter
Name Description
value DataStream.IosAppStreamData
Returns
Type Description
DataStream.Builder

mergeUnknownFields(UnknownFieldSet unknownFields)

public final DataStream.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
DataStream.Builder
Overrides

mergeUpdateTime(Timestamp value)

public DataStream.Builder mergeUpdateTime(Timestamp value)

Output only. Time when stream payload fields were last updated.

.google.protobuf.Timestamp update_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
value Timestamp
Returns
Type Description
DataStream.Builder

mergeWebStreamData(DataStream.WebStreamData value)

public DataStream.Builder mergeWebStreamData(DataStream.WebStreamData value)

Data specific to web streams. Must be populated if type is WEB_DATA_STREAM.

.google.analytics.admin.v1alpha.DataStream.WebStreamData web_stream_data = 6;

Parameter
Name Description
value DataStream.WebStreamData
Returns
Type Description
DataStream.Builder

setAndroidAppStreamData(DataStream.AndroidAppStreamData value)

public DataStream.Builder setAndroidAppStreamData(DataStream.AndroidAppStreamData value)

Data specific to Android app streams. Must be populated if type is ANDROID_APP_DATA_STREAM.

.google.analytics.admin.v1alpha.DataStream.AndroidAppStreamData android_app_stream_data = 7;

Parameter
Name Description
value DataStream.AndroidAppStreamData
Returns
Type Description
DataStream.Builder

setAndroidAppStreamData(DataStream.AndroidAppStreamData.Builder builderForValue)

public DataStream.Builder setAndroidAppStreamData(DataStream.AndroidAppStreamData.Builder builderForValue)

Data specific to Android app streams. Must be populated if type is ANDROID_APP_DATA_STREAM.

.google.analytics.admin.v1alpha.DataStream.AndroidAppStreamData android_app_stream_data = 7;

Parameter
Name Description
builderForValue DataStream.AndroidAppStreamData.Builder
Returns
Type Description
DataStream.Builder

setCreateTime(Timestamp value)

public DataStream.Builder setCreateTime(Timestamp value)

Output only. Time when this stream was originally created.

.google.protobuf.Timestamp create_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
value Timestamp
Returns
Type Description
DataStream.Builder

setCreateTime(Timestamp.Builder builderForValue)

public DataStream.Builder setCreateTime(Timestamp.Builder builderForValue)

Output only. Time when this stream was originally created.

.google.protobuf.Timestamp create_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
builderForValue Builder
Returns
Type Description
DataStream.Builder

setDisplayName(String value)

public DataStream.Builder setDisplayName(String value)

Human-readable display name for the Data Stream.

Required for web data streams.

The max allowed display name length is 255 UTF-16 code units.

string display_name = 3;

Parameter
Name Description
value String

The displayName to set.

Returns
Type Description
DataStream.Builder

This builder for chaining.

setDisplayNameBytes(ByteString value)

public DataStream.Builder setDisplayNameBytes(ByteString value)

Human-readable display name for the Data Stream.

Required for web data streams.

The max allowed display name length is 255 UTF-16 code units.

string display_name = 3;

Parameter
Name Description
value ByteString

The bytes for displayName to set.

Returns
Type Description
DataStream.Builder

This builder for chaining.

setField(Descriptors.FieldDescriptor field, Object value)

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

setIosAppStreamData(DataStream.IosAppStreamData value)

public DataStream.Builder setIosAppStreamData(DataStream.IosAppStreamData value)

Data specific to iOS app streams. Must be populated if type is IOS_APP_DATA_STREAM.

.google.analytics.admin.v1alpha.DataStream.IosAppStreamData ios_app_stream_data = 8;

Parameter
Name Description
value DataStream.IosAppStreamData
Returns
Type Description
DataStream.Builder

setIosAppStreamData(DataStream.IosAppStreamData.Builder builderForValue)

public DataStream.Builder setIosAppStreamData(DataStream.IosAppStreamData.Builder builderForValue)

Data specific to iOS app streams. Must be populated if type is IOS_APP_DATA_STREAM.

.google.analytics.admin.v1alpha.DataStream.IosAppStreamData ios_app_stream_data = 8;

Parameter
Name Description
builderForValue DataStream.IosAppStreamData.Builder
Returns
Type Description
DataStream.Builder

setName(String value)

public DataStream.Builder setName(String value)

Output only. Resource name of this Data Stream. Format: properties/{property_id}/dataStreams/{stream_id} Example: "properties/1000/dataStreams/2000"

string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
value String

The name to set.

Returns
Type Description
DataStream.Builder

This builder for chaining.

setNameBytes(ByteString value)

public DataStream.Builder setNameBytes(ByteString value)

Output only. Resource name of this Data Stream. Format: properties/{property_id}/dataStreams/{stream_id} Example: "properties/1000/dataStreams/2000"

string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
value ByteString

The bytes for name to set.

Returns
Type Description
DataStream.Builder

This builder for chaining.

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

public DataStream.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
Name Description
field FieldDescriptor
index int
value Object
Returns
Type Description
DataStream.Builder
Overrides

setType(DataStream.DataStreamType value)

public DataStream.Builder setType(DataStream.DataStreamType value)

Required. Immutable. The type of this DataStream resource.

.google.analytics.admin.v1alpha.DataStream.DataStreamType type = 2 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
value DataStream.DataStreamType

The type to set.

Returns
Type Description
DataStream.Builder

This builder for chaining.

setTypeValue(int value)

public DataStream.Builder setTypeValue(int value)

Required. Immutable. The type of this DataStream resource.

.google.analytics.admin.v1alpha.DataStream.DataStreamType type = 2 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
value int

The enum numeric value on the wire for type to set.

Returns
Type Description
DataStream.Builder

This builder for chaining.

setUnknownFields(UnknownFieldSet unknownFields)

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

setUpdateTime(Timestamp value)

public DataStream.Builder setUpdateTime(Timestamp value)

Output only. Time when stream payload fields were last updated.

.google.protobuf.Timestamp update_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
value Timestamp
Returns
Type Description
DataStream.Builder

setUpdateTime(Timestamp.Builder builderForValue)

public DataStream.Builder setUpdateTime(Timestamp.Builder builderForValue)

Output only. Time when stream payload fields were last updated.

.google.protobuf.Timestamp update_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
builderForValue Builder
Returns
Type Description
DataStream.Builder

setWebStreamData(DataStream.WebStreamData value)

public DataStream.Builder setWebStreamData(DataStream.WebStreamData value)

Data specific to web streams. Must be populated if type is WEB_DATA_STREAM.

.google.analytics.admin.v1alpha.DataStream.WebStreamData web_stream_data = 6;

Parameter
Name Description
value DataStream.WebStreamData
Returns
Type Description
DataStream.Builder

setWebStreamData(DataStream.WebStreamData.Builder builderForValue)

public DataStream.Builder setWebStreamData(DataStream.WebStreamData.Builder builderForValue)

Data specific to web streams. Must be populated if type is WEB_DATA_STREAM.

.google.analytics.admin.v1alpha.DataStream.WebStreamData web_stream_data = 6;

Parameter
Name Description
builderForValue DataStream.WebStreamData.Builder
Returns
Type Description
DataStream.Builder