Class AppendRowsRequest
- java.lang.Object
-
- com.google.protobuf.AbstractMessageLite
-
- com.google.protobuf.AbstractMessage
-
- com.google.protobuf.GeneratedMessageV3
-
- com.google.cloud.bigquery.storage.v1beta2.AppendRowsRequest
-
- All Implemented Interfaces:
AppendRowsRequestOrBuilder
,com.google.protobuf.Message
,com.google.protobuf.MessageLite
,com.google.protobuf.MessageLiteOrBuilder
,com.google.protobuf.MessageOrBuilder
,Serializable
public final class AppendRowsRequest extends com.google.protobuf.GeneratedMessageV3 implements AppendRowsRequestOrBuilder
Request message for `AppendRows`.
Protobuf typegoogle.cloud.bigquery.storage.v1beta2.AppendRowsRequest
- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
AppendRowsRequest.Builder
Request message for `AppendRows`.static class
AppendRowsRequest.ProtoData
Proto schema and data.static interface
AppendRowsRequest.ProtoDataOrBuilder
static class
AppendRowsRequest.RowsCase
-
Nested classes/interfaces inherited from class com.google.protobuf.GeneratedMessageV3
com.google.protobuf.GeneratedMessageV3.BuilderParent, com.google.protobuf.GeneratedMessageV3.ExtendableBuilder<MessageT extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageT>,BuilderT extends com.google.protobuf.GeneratedMessageV3.ExtendableBuilder<MessageT,BuilderT>>, com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageT extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageT>>, com.google.protobuf.GeneratedMessageV3.ExtendableMessageOrBuilder<MessageT extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageT>>, com.google.protobuf.GeneratedMessageV3.FieldAccessorTable, com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter
-
-
Field Summary
Fields Modifier and Type Field Description static int
OFFSET_FIELD_NUMBER
static int
PROTO_ROWS_FIELD_NUMBER
static int
TRACE_ID_FIELD_NUMBER
static int
WRITE_STREAM_FIELD_NUMBER
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
equals(Object obj)
static AppendRowsRequest
getDefaultInstance()
AppendRowsRequest
getDefaultInstanceForType()
static com.google.protobuf.Descriptors.Descriptor
getDescriptor()
com.google.protobuf.Int64Value
getOffset()
If present, the write is only performed if the next append offset is same as the provided value.com.google.protobuf.Int64ValueOrBuilder
getOffsetOrBuilder()
If present, the write is only performed if the next append offset is same as the provided value.com.google.protobuf.Parser<AppendRowsRequest>
getParserForType()
AppendRowsRequest.ProtoData
getProtoRows()
Rows in proto format.AppendRowsRequest.ProtoDataOrBuilder
getProtoRowsOrBuilder()
Rows in proto format.AppendRowsRequest.RowsCase
getRowsCase()
int
getSerializedSize()
String
getTraceId()
Id set by client to annotate its identity.com.google.protobuf.ByteString
getTraceIdBytes()
Id set by client to annotate its identity.String
getWriteStream()
Required.com.google.protobuf.ByteString
getWriteStreamBytes()
Required.int
hashCode()
boolean
hasOffset()
If present, the write is only performed if the next append offset is same as the provided value.boolean
hasProtoRows()
Rows in proto format.protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable()
boolean
isInitialized()
static AppendRowsRequest.Builder
newBuilder()
static AppendRowsRequest.Builder
newBuilder(AppendRowsRequest prototype)
AppendRowsRequest.Builder
newBuilderForType()
protected AppendRowsRequest.Builder
newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)
protected Object
newInstance(com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter unused)
static AppendRowsRequest
parseDelimitedFrom(InputStream input)
static AppendRowsRequest
parseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
static AppendRowsRequest
parseFrom(byte[] data)
static AppendRowsRequest
parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
static AppendRowsRequest
parseFrom(com.google.protobuf.ByteString data)
static AppendRowsRequest
parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
static AppendRowsRequest
parseFrom(com.google.protobuf.CodedInputStream input)
static AppendRowsRequest
parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
static AppendRowsRequest
parseFrom(InputStream input)
static AppendRowsRequest
parseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
static AppendRowsRequest
parseFrom(ByteBuffer data)
static AppendRowsRequest
parseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
static com.google.protobuf.Parser<AppendRowsRequest>
parser()
AppendRowsRequest.Builder
toBuilder()
void
writeTo(com.google.protobuf.CodedOutputStream output)
-
Methods inherited from class com.google.protobuf.GeneratedMessageV3
canUseUnsafe, computeStringSize, computeStringSizeNoTag, emptyBooleanList, emptyDoubleList, emptyFloatList, emptyIntList, emptyLongList, getAllFields, getDescriptorForType, getField, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof, internalGetMapField, isStringEmpty, makeExtensionsImmutable, makeMutableCopy, mergeFromAndMakeImmutableInternal, mutableCopy, mutableCopy, mutableCopy, mutableCopy, mutableCopy, newBooleanList, newBuilderForType, newDoubleList, newFloatList, newIntList, newLongList, parseDelimitedWithIOException, parseDelimitedWithIOException, parseUnknownField, parseUnknownFieldProto3, parseWithIOException, parseWithIOException, parseWithIOException, parseWithIOException, serializeBooleanMapTo, serializeIntegerMapTo, serializeLongMapTo, serializeStringMapTo, writeReplace, writeString, writeStringNoTag
-
Methods inherited from class com.google.protobuf.AbstractMessage
findInitializationErrors, getInitializationErrorString, hashBoolean, hashEnum, hashEnumList, hashFields, hashLong, toString
-
Methods inherited from class com.google.protobuf.AbstractMessageLite
addAll, addAll, checkByteStringIsUtf8, toByteArray, toByteString, writeDelimitedTo, writeTo
-
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
-
-
-
-
Field Detail
-
WRITE_STREAM_FIELD_NUMBER
public static final int WRITE_STREAM_FIELD_NUMBER
- See Also:
- Constant Field Values
-
OFFSET_FIELD_NUMBER
public static final int OFFSET_FIELD_NUMBER
- See Also:
- Constant Field Values
-
PROTO_ROWS_FIELD_NUMBER
public static final int PROTO_ROWS_FIELD_NUMBER
- See Also:
- Constant Field Values
-
TRACE_ID_FIELD_NUMBER
public static final int TRACE_ID_FIELD_NUMBER
- See Also:
- Constant Field Values
-
-
Method Detail
-
newInstance
protected Object newInstance(com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter unused)
- Overrides:
newInstance
in classcom.google.protobuf.GeneratedMessageV3
-
getDescriptor
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
-
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
- Specified by:
internalGetFieldAccessorTable
in classcom.google.protobuf.GeneratedMessageV3
-
getRowsCase
public AppendRowsRequest.RowsCase getRowsCase()
- Specified by:
getRowsCase
in interfaceAppendRowsRequestOrBuilder
-
getWriteStream
public String getWriteStream()
Required. The stream that is the target of the append operation. This value must be specified for the initial request. If subsequent requests specify the stream name, it must equal to the value provided in the first request. To write to the _default stream, populate this field with a string in the format `projects/{project}/datasets/{dataset}/tables/{table}/_default`.
string write_stream = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
- Specified by:
getWriteStream
in interfaceAppendRowsRequestOrBuilder
- Returns:
- The writeStream.
-
getWriteStreamBytes
public com.google.protobuf.ByteString getWriteStreamBytes()
Required. The stream that is the target of the append operation. This value must be specified for the initial request. If subsequent requests specify the stream name, it must equal to the value provided in the first request. To write to the _default stream, populate this field with a string in the format `projects/{project}/datasets/{dataset}/tables/{table}/_default`.
string write_stream = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
- Specified by:
getWriteStreamBytes
in interfaceAppendRowsRequestOrBuilder
- Returns:
- The bytes for writeStream.
-
hasOffset
public boolean hasOffset()
If present, the write is only performed if the next append offset is same as the provided value. If not present, the write is performed at the current end of stream. Specifying a value for this field is not allowed when calling AppendRows for the '_default' stream.
.google.protobuf.Int64Value offset = 2;
- Specified by:
hasOffset
in interfaceAppendRowsRequestOrBuilder
- Returns:
- Whether the offset field is set.
-
getOffset
public com.google.protobuf.Int64Value getOffset()
If present, the write is only performed if the next append offset is same as the provided value. If not present, the write is performed at the current end of stream. Specifying a value for this field is not allowed when calling AppendRows for the '_default' stream.
.google.protobuf.Int64Value offset = 2;
- Specified by:
getOffset
in interfaceAppendRowsRequestOrBuilder
- Returns:
- The offset.
-
getOffsetOrBuilder
public com.google.protobuf.Int64ValueOrBuilder getOffsetOrBuilder()
If present, the write is only performed if the next append offset is same as the provided value. If not present, the write is performed at the current end of stream. Specifying a value for this field is not allowed when calling AppendRows for the '_default' stream.
.google.protobuf.Int64Value offset = 2;
- Specified by:
getOffsetOrBuilder
in interfaceAppendRowsRequestOrBuilder
-
hasProtoRows
public boolean hasProtoRows()
Rows in proto format.
.google.cloud.bigquery.storage.v1beta2.AppendRowsRequest.ProtoData proto_rows = 4;
- Specified by:
hasProtoRows
in interfaceAppendRowsRequestOrBuilder
- Returns:
- Whether the protoRows field is set.
-
getProtoRows
public AppendRowsRequest.ProtoData getProtoRows()
Rows in proto format.
.google.cloud.bigquery.storage.v1beta2.AppendRowsRequest.ProtoData proto_rows = 4;
- Specified by:
getProtoRows
in interfaceAppendRowsRequestOrBuilder
- Returns:
- The protoRows.
-
getProtoRowsOrBuilder
public AppendRowsRequest.ProtoDataOrBuilder getProtoRowsOrBuilder()
Rows in proto format.
.google.cloud.bigquery.storage.v1beta2.AppendRowsRequest.ProtoData proto_rows = 4;
- Specified by:
getProtoRowsOrBuilder
in interfaceAppendRowsRequestOrBuilder
-
getTraceId
public String getTraceId()
Id set by client to annotate its identity. Only initial request setting is respected.
string trace_id = 6;
- Specified by:
getTraceId
in interfaceAppendRowsRequestOrBuilder
- Returns:
- The traceId.
-
getTraceIdBytes
public com.google.protobuf.ByteString getTraceIdBytes()
Id set by client to annotate its identity. Only initial request setting is respected.
string trace_id = 6;
- Specified by:
getTraceIdBytes
in interfaceAppendRowsRequestOrBuilder
- Returns:
- The bytes for traceId.
-
isInitialized
public final boolean isInitialized()
- Specified by:
isInitialized
in interfacecom.google.protobuf.MessageLiteOrBuilder
- Overrides:
isInitialized
in classcom.google.protobuf.GeneratedMessageV3
-
writeTo
public void writeTo(com.google.protobuf.CodedOutputStream output) throws IOException
- Specified by:
writeTo
in interfacecom.google.protobuf.MessageLite
- Overrides:
writeTo
in classcom.google.protobuf.GeneratedMessageV3
- Throws:
IOException
-
getSerializedSize
public int getSerializedSize()
- Specified by:
getSerializedSize
in interfacecom.google.protobuf.MessageLite
- Overrides:
getSerializedSize
in classcom.google.protobuf.GeneratedMessageV3
-
equals
public boolean equals(Object obj)
- Specified by:
equals
in interfacecom.google.protobuf.Message
- Overrides:
equals
in classcom.google.protobuf.AbstractMessage
-
hashCode
public int hashCode()
- Specified by:
hashCode
in interfacecom.google.protobuf.Message
- Overrides:
hashCode
in classcom.google.protobuf.AbstractMessage
-
parseFrom
public static AppendRowsRequest parseFrom(ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException
- Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static AppendRowsRequest parseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
- Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static AppendRowsRequest parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException
- Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static AppendRowsRequest parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
- Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static AppendRowsRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException
- Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static AppendRowsRequest parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
- Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static AppendRowsRequest parseFrom(InputStream input) throws IOException
- Throws:
IOException
-
parseFrom
public static AppendRowsRequest parseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
- Throws:
IOException
-
parseDelimitedFrom
public static AppendRowsRequest parseDelimitedFrom(InputStream input) throws IOException
- Throws:
IOException
-
parseDelimitedFrom
public static AppendRowsRequest parseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
- Throws:
IOException
-
parseFrom
public static AppendRowsRequest parseFrom(com.google.protobuf.CodedInputStream input) throws IOException
- Throws:
IOException
-
parseFrom
public static AppendRowsRequest parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
- Throws:
IOException
-
newBuilderForType
public AppendRowsRequest.Builder newBuilderForType()
- Specified by:
newBuilderForType
in interfacecom.google.protobuf.Message
- Specified by:
newBuilderForType
in interfacecom.google.protobuf.MessageLite
-
newBuilder
public static AppendRowsRequest.Builder newBuilder()
-
newBuilder
public static AppendRowsRequest.Builder newBuilder(AppendRowsRequest prototype)
-
toBuilder
public AppendRowsRequest.Builder toBuilder()
- Specified by:
toBuilder
in interfacecom.google.protobuf.Message
- Specified by:
toBuilder
in interfacecom.google.protobuf.MessageLite
-
newBuilderForType
protected AppendRowsRequest.Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)
- Specified by:
newBuilderForType
in classcom.google.protobuf.GeneratedMessageV3
-
getDefaultInstance
public static AppendRowsRequest getDefaultInstance()
-
parser
public static com.google.protobuf.Parser<AppendRowsRequest> parser()
-
getParserForType
public com.google.protobuf.Parser<AppendRowsRequest> getParserForType()
- Specified by:
getParserForType
in interfacecom.google.protobuf.Message
- Specified by:
getParserForType
in interfacecom.google.protobuf.MessageLite
- Overrides:
getParserForType
in classcom.google.protobuf.GeneratedMessageV3
-
getDefaultInstanceForType
public AppendRowsRequest getDefaultInstanceForType()
- Specified by:
getDefaultInstanceForType
in interfacecom.google.protobuf.MessageLiteOrBuilder
- Specified by:
getDefaultInstanceForType
in interfacecom.google.protobuf.MessageOrBuilder
-
-