public static final class StreamData.Builder extends GeneratedMessage.Builder<StreamData.Builder> implements StreamDataOrBuilderData for a stream.
Protobuf type google.cloud.devicestreaming.v1.StreamData
Inheritance
java.lang.Object > AbstractMessageLite.Builder<MessageType,BuilderType> > AbstractMessage.Builder<BuilderType> > GeneratedMessage.Builder > StreamData.BuilderImplements
StreamDataOrBuilderStatic Methods
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()| Returns | |
|---|---|
| Type | Description |
Descriptor |
|
Methods
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 |
|
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. |
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. |
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 |
|
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 GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()| Returns | |
|---|---|
| Type | Description |
FieldAccessorTable |
|
isInitialized()
public final boolean isInitialized()| Returns | |
|---|---|
| Type | Description |
boolean |
|
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 |
|
| Exceptions | |
|---|---|
| Type | Description |
IOException |
|
mergeFrom(Message other)
public StreamData.Builder mergeFrom(Message other)| Parameter | |
|---|---|
| Name | Description |
other |
Message |
| Returns | |
|---|---|
| Type | Description |
StreamData.Builder |
|
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 |
ByteStringThe data to set. |
| Returns | |
|---|---|
| Type | Description |
StreamData.Builder |
This builder for chaining. |
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 |
intThe streamId to set. |
| Returns | |
|---|---|
| Type | Description |
StreamData.Builder |
This builder for chaining. |