Class DataStream.Builder (0.45.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.v1beta.DataStream

Implements

DataStreamOrBuilder

Static Methods

getDescriptor()

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

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public DataStream build()
Returns
TypeDescription
DataStream

buildPartial()

public DataStream buildPartial()
Returns
TypeDescription
DataStream

clear()

public DataStream.Builder clear()
Returns
TypeDescription
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.v1beta.DataStream.AndroidAppStreamData android_app_stream_data = 7;

Returns
TypeDescription
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
TypeDescription
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
TypeDescription
DataStream.Builder

This builder for chaining.

clearField(Descriptors.FieldDescriptor field)

public DataStream.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
NameDescription
fieldFieldDescriptor
Returns
TypeDescription
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.v1beta.DataStream.IosAppStreamData ios_app_stream_data = 8;

Returns
TypeDescription
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
TypeDescription
DataStream.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

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

clearStreamData()

public DataStream.Builder clearStreamData()
Returns
TypeDescription
DataStream.Builder

clearType()

public DataStream.Builder clearType()

Required. Immutable. The type of this DataStream resource.

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

Returns
TypeDescription
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
TypeDescription
DataStream.Builder

clearWebStreamData()

public DataStream.Builder clearWebStreamData()

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

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

Returns
TypeDescription
DataStream.Builder

clone()

public DataStream.Builder clone()
Returns
TypeDescription
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.v1beta.DataStream.AndroidAppStreamData android_app_stream_data = 7;

Returns
TypeDescription
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.v1beta.DataStream.AndroidAppStreamData android_app_stream_data = 7;

Returns
TypeDescription
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.v1beta.DataStream.AndroidAppStreamData android_app_stream_data = 7;

Returns
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
TimestampOrBuilder

getDefaultInstanceForType()

public DataStream getDefaultInstanceForType()
Returns
TypeDescription
DataStream

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
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
TypeDescription
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
TypeDescription
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.v1beta.DataStream.IosAppStreamData ios_app_stream_data = 8;

Returns
TypeDescription
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.v1beta.DataStream.IosAppStreamData ios_app_stream_data = 8;

Returns
TypeDescription
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.v1beta.DataStream.IosAppStreamData ios_app_stream_data = 8;

Returns
TypeDescription
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
TypeDescription
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
TypeDescription
ByteString

The bytes for name.

getStreamDataCase()

public DataStream.StreamDataCase getStreamDataCase()
Returns
TypeDescription
DataStream.StreamDataCase

getType()

public DataStream.DataStreamType getType()

Required. Immutable. The type of this DataStream resource.

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

Returns
TypeDescription
DataStream.DataStreamType

The type.

getTypeValue()

public int getTypeValue()

Required. Immutable. The type of this DataStream resource.

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

Returns
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
TimestampOrBuilder

getWebStreamData()

public DataStream.WebStreamData getWebStreamData()

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

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

Returns
TypeDescription
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.v1beta.DataStream.WebStreamData web_stream_data = 6;

Returns
TypeDescription
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.v1beta.DataStream.WebStreamData web_stream_data = 6;

Returns
TypeDescription
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.v1beta.DataStream.AndroidAppStreamData android_app_stream_data = 7;

Returns
TypeDescription
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
TypeDescription
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.v1beta.DataStream.IosAppStreamData ios_app_stream_data = 8;

Returns
TypeDescription
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
TypeDescription
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.v1beta.DataStream.WebStreamData web_stream_data = 6;

Returns
TypeDescription
boolean

Whether the webStreamData field is set.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
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.v1beta.DataStream.AndroidAppStreamData android_app_stream_data = 7;

Parameter
NameDescription
valueDataStream.AndroidAppStreamData
Returns
TypeDescription
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
NameDescription
valueTimestamp
Returns
TypeDescription
DataStream.Builder

mergeFrom(DataStream other)

public DataStream.Builder mergeFrom(DataStream other)
Parameter
NameDescription
otherDataStream
Returns
TypeDescription
DataStream.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

public DataStream.Builder mergeFrom(Message other)
Parameter
NameDescription
otherMessage
Returns
TypeDescription
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.v1beta.DataStream.IosAppStreamData ios_app_stream_data = 8;

Parameter
NameDescription
valueDataStream.IosAppStreamData
Returns
TypeDescription
DataStream.Builder

mergeUnknownFields(UnknownFieldSet unknownFields)

public final DataStream.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
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
NameDescription
valueTimestamp
Returns
TypeDescription
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.v1beta.DataStream.WebStreamData web_stream_data = 6;

Parameter
NameDescription
valueDataStream.WebStreamData
Returns
TypeDescription
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.v1beta.DataStream.AndroidAppStreamData android_app_stream_data = 7;

Parameter
NameDescription
valueDataStream.AndroidAppStreamData
Returns
TypeDescription
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.v1beta.DataStream.AndroidAppStreamData android_app_stream_data = 7;

Parameter
NameDescription
builderForValueDataStream.AndroidAppStreamData.Builder
Returns
TypeDescription
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
NameDescription
valueTimestamp
Returns
TypeDescription
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
NameDescription
builderForValueBuilder
Returns
TypeDescription
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
NameDescription
valueString

The displayName to set.

Returns
TypeDescription
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
NameDescription
valueByteString

The bytes for displayName to set.

Returns
TypeDescription
DataStream.Builder

This builder for chaining.

setField(Descriptors.FieldDescriptor field, Object value)

public DataStream.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
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.v1beta.DataStream.IosAppStreamData ios_app_stream_data = 8;

Parameter
NameDescription
valueDataStream.IosAppStreamData
Returns
TypeDescription
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.v1beta.DataStream.IosAppStreamData ios_app_stream_data = 8;

Parameter
NameDescription
builderForValueDataStream.IosAppStreamData.Builder
Returns
TypeDescription
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
NameDescription
valueString

The name to set.

Returns
TypeDescription
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
NameDescription
valueByteString

The bytes for name to set.

Returns
TypeDescription
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
NameDescription
fieldFieldDescriptor
indexint
valueObject
Returns
TypeDescription
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.v1beta.DataStream.DataStreamType type = 2 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.field_behavior) = REQUIRED];

Parameter
NameDescription
valueDataStream.DataStreamType

The type to set.

Returns
TypeDescription
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.v1beta.DataStream.DataStreamType type = 2 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.field_behavior) = REQUIRED];

Parameter
NameDescription
valueint

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

Returns
TypeDescription
DataStream.Builder

This builder for chaining.

setUnknownFields(UnknownFieldSet unknownFields)

public final DataStream.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
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
NameDescription
valueTimestamp
Returns
TypeDescription
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
NameDescription
builderForValueBuilder
Returns
TypeDescription
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.v1beta.DataStream.WebStreamData web_stream_data = 6;

Parameter
NameDescription
valueDataStream.WebStreamData
Returns
TypeDescription
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.v1beta.DataStream.WebStreamData web_stream_data = 6;

Parameter
NameDescription
builderForValueDataStream.WebStreamData.Builder
Returns
TypeDescription
DataStream.Builder