Package com.viam.component.audioin.v1
Class Audioin.GetAudioRequest.Builder
java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder<MessageType,BuilderType>
com.google.protobuf.GeneratedMessageLite.Builder<Audioin.GetAudioRequest,Audioin.GetAudioRequest.Builder>
com.viam.component.audioin.v1.Audioin.GetAudioRequest.Builder
- All Implemented Interfaces:
com.google.protobuf.MessageLite.Builder,com.google.protobuf.MessageLiteOrBuilder,Audioin.GetAudioRequestOrBuilder,Cloneable
- Enclosing class:
- Audioin.GetAudioRequest
public static final class Audioin.GetAudioRequest.Builder
extends com.google.protobuf.GeneratedMessageLite.Builder<Audioin.GetAudioRequest,Audioin.GetAudioRequest.Builder>
implements Audioin.GetAudioRequestOrBuilder
Protobuf type
viam.component.audioin.v1.GetAudioRequest-
Field Summary
Fields inherited from class com.google.protobuf.GeneratedMessageLite.Builder
instance -
Method Summary
Modifier and TypeMethodDescriptionRequested audio codec for the response (e.g., "mp3", "pcm16")Desired duration of audio stream If not set or set to 0, the stream is infinite.google.protobuf.Struct extra = 99 [json_name = "extra"];string name = 1 [json_name = "name"];Timestamp of the previous audio chunk, in nanoseconds, used for resuming and continuity.To match a request to it's responsesgetCodec()Requested audio codec for the response (e.g., "mp3", "pcm16")com.google.protobuf.ByteStringRequested audio codec for the response (e.g., "mp3", "pcm16")floatDesired duration of audio stream If not set or set to 0, the stream is infinitecom.google.protobuf.StructgetExtra().google.protobuf.Struct extra = 99 [json_name = "extra"];getName()string name = 1 [json_name = "name"];com.google.protobuf.ByteStringstring name = 1 [json_name = "name"];longTimestamp of the previous audio chunk, in nanoseconds, used for resuming and continuity.To match a request to it's responsescom.google.protobuf.ByteStringTo match a request to it's responsesbooleanhasExtra().google.protobuf.Struct extra = 99 [json_name = "extra"];mergeExtra(com.google.protobuf.Struct value) .google.protobuf.Struct extra = 99 [json_name = "extra"];Requested audio codec for the response (e.g., "mp3", "pcm16")setCodecBytes(com.google.protobuf.ByteString value) Requested audio codec for the response (e.g., "mp3", "pcm16")setDurationSeconds(float value) Desired duration of audio stream If not set or set to 0, the stream is infinitesetExtra(com.google.protobuf.Struct value) .google.protobuf.Struct extra = 99 [json_name = "extra"];setExtra(com.google.protobuf.Struct.Builder builderForValue) .google.protobuf.Struct extra = 99 [json_name = "extra"];string name = 1 [json_name = "name"];setNameBytes(com.google.protobuf.ByteString value) string name = 1 [json_name = "name"];setPreviousTimestampNanoseconds(long value) Timestamp of the previous audio chunk, in nanoseconds, used for resuming and continuity.setRequestId(String value) To match a request to it's responsessetRequestIdBytes(com.google.protobuf.ByteString value) To match a request to it's responsesMethods inherited from class com.google.protobuf.GeneratedMessageLite.Builder
build, buildPartial, clear, clone, copyOnWrite, copyOnWriteInternal, getDefaultInstanceForType, internalMergeFrom, isInitialized, mergeFrom, mergeFrom, mergeFrom, mergeFromMethods inherited from class com.google.protobuf.AbstractMessageLite.Builder
addAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageExceptionMethods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface com.google.protobuf.MessageLiteOrBuilder
getDefaultInstanceForType, isInitialized
-
Method Details
-
getName
string name = 1 [json_name = "name"];- Specified by:
getNamein interfaceAudioin.GetAudioRequestOrBuilder- Returns:
- The name.
-
getNameBytes
public com.google.protobuf.ByteString getNameBytes()string name = 1 [json_name = "name"];- Specified by:
getNameBytesin interfaceAudioin.GetAudioRequestOrBuilder- Returns:
- The bytes for name.
-
setName
string name = 1 [json_name = "name"];- Parameters:
value- The name to set.- Returns:
- This builder for chaining.
-
clearName
string name = 1 [json_name = "name"];- Returns:
- This builder for chaining.
-
setNameBytes
string name = 1 [json_name = "name"];- Parameters:
value- The bytes for name to set.- Returns:
- This builder for chaining.
-
getDurationSeconds
public float getDurationSeconds()Desired duration of audio stream If not set or set to 0, the stream is infinite
float duration_seconds = 2 [json_name = "durationSeconds"];- Specified by:
getDurationSecondsin interfaceAudioin.GetAudioRequestOrBuilder- Returns:
- The durationSeconds.
-
setDurationSeconds
Desired duration of audio stream If not set or set to 0, the stream is infinite
float duration_seconds = 2 [json_name = "durationSeconds"];- Parameters:
value- The durationSeconds to set.- Returns:
- This builder for chaining.
-
clearDurationSeconds
Desired duration of audio stream If not set or set to 0, the stream is infinite
float duration_seconds = 2 [json_name = "durationSeconds"];- Returns:
- This builder for chaining.
-
getCodec
Requested audio codec for the response (e.g., "mp3", "pcm16")
string codec = 3 [json_name = "codec"];- Specified by:
getCodecin interfaceAudioin.GetAudioRequestOrBuilder- Returns:
- The codec.
-
getCodecBytes
public com.google.protobuf.ByteString getCodecBytes()Requested audio codec for the response (e.g., "mp3", "pcm16")
string codec = 3 [json_name = "codec"];- Specified by:
getCodecBytesin interfaceAudioin.GetAudioRequestOrBuilder- Returns:
- The bytes for codec.
-
setCodec
Requested audio codec for the response (e.g., "mp3", "pcm16")
string codec = 3 [json_name = "codec"];- Parameters:
value- The codec to set.- Returns:
- This builder for chaining.
-
clearCodec
Requested audio codec for the response (e.g., "mp3", "pcm16")
string codec = 3 [json_name = "codec"];- Returns:
- This builder for chaining.
-
setCodecBytes
Requested audio codec for the response (e.g., "mp3", "pcm16")
string codec = 3 [json_name = "codec"];- Parameters:
value- The bytes for codec to set.- Returns:
- This builder for chaining.
-
getRequestId
To match a request to it's responses
string request_id = 4 [json_name = "requestId"];- Specified by:
getRequestIdin interfaceAudioin.GetAudioRequestOrBuilder- Returns:
- The requestId.
-
getRequestIdBytes
public com.google.protobuf.ByteString getRequestIdBytes()To match a request to it's responses
string request_id = 4 [json_name = "requestId"];- Specified by:
getRequestIdBytesin interfaceAudioin.GetAudioRequestOrBuilder- Returns:
- The bytes for requestId.
-
setRequestId
To match a request to it's responses
string request_id = 4 [json_name = "requestId"];- Parameters:
value- The requestId to set.- Returns:
- This builder for chaining.
-
clearRequestId
To match a request to it's responses
string request_id = 4 [json_name = "requestId"];- Returns:
- This builder for chaining.
-
setRequestIdBytes
To match a request to it's responses
string request_id = 4 [json_name = "requestId"];- Parameters:
value- The bytes for requestId to set.- Returns:
- This builder for chaining.
-
getPreviousTimestampNanoseconds
public long getPreviousTimestampNanoseconds()Timestamp of the previous audio chunk, in nanoseconds, used for resuming and continuity.
int64 previous_timestamp_nanoseconds = 5 [json_name = "previousTimestampNanoseconds"];- Specified by:
getPreviousTimestampNanosecondsin interfaceAudioin.GetAudioRequestOrBuilder- Returns:
- The previousTimestampNanoseconds.
-
setPreviousTimestampNanoseconds
Timestamp of the previous audio chunk, in nanoseconds, used for resuming and continuity.
int64 previous_timestamp_nanoseconds = 5 [json_name = "previousTimestampNanoseconds"];- Parameters:
value- The previousTimestampNanoseconds to set.- Returns:
- This builder for chaining.
-
clearPreviousTimestampNanoseconds
Timestamp of the previous audio chunk, in nanoseconds, used for resuming and continuity.
int64 previous_timestamp_nanoseconds = 5 [json_name = "previousTimestampNanoseconds"];- Returns:
- This builder for chaining.
-
hasExtra
public boolean hasExtra().google.protobuf.Struct extra = 99 [json_name = "extra"];- Specified by:
hasExtrain interfaceAudioin.GetAudioRequestOrBuilder- Returns:
- Whether the extra field is set.
-
getExtra
public com.google.protobuf.Struct getExtra().google.protobuf.Struct extra = 99 [json_name = "extra"];- Specified by:
getExtrain interfaceAudioin.GetAudioRequestOrBuilder- Returns:
- The extra.
-
setExtra
.google.protobuf.Struct extra = 99 [json_name = "extra"]; -
setExtra
.google.protobuf.Struct extra = 99 [json_name = "extra"]; -
mergeExtra
.google.protobuf.Struct extra = 99 [json_name = "extra"]; -
clearExtra
.google.protobuf.Struct extra = 99 [json_name = "extra"];
-