Class StreamData.Builder (0.2.0)

public static final class StreamData.Builder extends GeneratedMessageV3.Builder<StreamData.Builder> implements StreamDataOrBuilder

Data for a stream.

Protobuf type google.cloud.devicestreaming.v1.StreamData

Implements

StreamDataOrBuilder

Static Methods

getDescriptor()

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

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public StreamData build()
Returns
Type Description
StreamData

buildPartial()

public StreamData buildPartial()
Returns
Type Description
StreamData

clear()

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

clearClose()

public StreamData.Builder clearClose()

The stream is closing. EOF.

.google.cloud.devicestreaming.v1.Close close = 3;

Returns
Type Description
StreamData.Builder

clearContents()

public StreamData.Builder clearContents()
Returns
Type Description
StreamData.Builder

clearData()

public StreamData.Builder clearData()

Data in the stream.

bytes data = 2;

Returns
Type Description
StreamData.Builder

This builder for chaining.

clearField(Descriptors.FieldDescriptor field)

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

clearOneof(Descriptors.OneofDescriptor oneof)

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

clearStreamId()

public StreamData.Builder clearStreamId()

Required. The unique ID of this stream, assigned by the client.

int32 stream_id = 1 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
StreamData.Builder

This builder for chaining.

clone()

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

getClose()

public Close getClose()

The stream is closing. EOF.

.google.cloud.devicestreaming.v1.Close close = 3;

Returns
Type Description
Close

The close.

getCloseBuilder()

public Close.Builder getCloseBuilder()

The stream is closing. EOF.

.google.cloud.devicestreaming.v1.Close close = 3;

Returns
Type Description
Close.Builder

getCloseOrBuilder()

public CloseOrBuilder getCloseOrBuilder()

The stream is closing. EOF.

.google.cloud.devicestreaming.v1.Close close = 3;

Returns
Type Description
CloseOrBuilder

getContentsCase()

public StreamData.ContentsCase getContentsCase()
Returns
Type Description
StreamData.ContentsCase

getData()

public ByteString getData()

Data in the stream.

bytes data = 2;

Returns
Type Description
ByteString

The data.

getDefaultInstanceForType()

public StreamData getDefaultInstanceForType()
Returns
Type Description
StreamData

getDescriptorForType()

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

getStreamId()

public int getStreamId()

Required. The unique ID of this stream, assigned by the client.

int32 stream_id = 1 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
int

The streamId.

hasClose()

public boolean hasClose()

The stream is closing. EOF.

.google.cloud.devicestreaming.v1.Close close = 3;

Returns
Type Description
boolean

Whether the close field is set.

hasData()

public boolean hasData()

Data in the stream.

bytes data = 2;

Returns
Type Description
boolean

Whether the data field is set.

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeClose(Close value)

public StreamData.Builder mergeClose(Close value)

The stream is closing. EOF.

.google.cloud.devicestreaming.v1.Close close = 3;

Parameter
Name Description
value Close
Returns
Type Description
StreamData.Builder

mergeFrom(StreamData other)

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

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

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

setClose(Close value)

public StreamData.Builder setClose(Close value)

The stream is closing. EOF.

.google.cloud.devicestreaming.v1.Close close = 3;

Parameter
Name Description
value Close
Returns
Type Description
StreamData.Builder

setClose(Close.Builder builderForValue)

public StreamData.Builder setClose(Close.Builder builderForValue)

The stream is closing. EOF.

.google.cloud.devicestreaming.v1.Close close = 3;

Parameter
Name Description
builderForValue Close.Builder
Returns
Type Description
StreamData.Builder

setData(ByteString value)

public StreamData.Builder setData(ByteString value)

Data in the stream.

bytes data = 2;

Parameter
Name Description
value ByteString

The data to set.

Returns
Type Description
StreamData.Builder

This builder for chaining.

setField(Descriptors.FieldDescriptor field, Object value)

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

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

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

setStreamId(int value)

public StreamData.Builder setStreamId(int value)

Required. The unique ID of this stream, assigned by the client.

int32 stream_id = 1 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
value int

The streamId to set.

Returns
Type Description
StreamData.Builder

This builder for chaining.

setUnknownFields(UnknownFieldSet unknownFields)

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