Many resources are needed to download a project. Please understand that we have to compensate our server costs. Thank you in advance. Project price only 1 $
You can buy this project and download/modify it how often you want.
*
* string resource_name = 1;
* @return The bytes for resourceName.
*/
com.google.protobuf.ByteString
getResourceNameBytes();
/**
*
* The offset for the first byte to return in the read, relative to the start
* of the resource.
*
* A `read_offset` that is negative or greater than the size of the resource
* will cause an `OUT_OF_RANGE` error.
*
*
* int64 read_offset = 2;
* @return The readOffset.
*/
long getReadOffset();
/**
*
* The maximum number of `data` bytes the server is allowed to return in the
* sum of all `ReadResponse` messages. A `read_limit` of zero indicates that
* there is no limit, and a negative `read_limit` will cause an error.
*
* If the stream returns fewer bytes than allowed by the `read_limit` and no
* error occurred, the stream includes all data from the `read_offset` to the
* end of the resource.
*
*
* int64 read_limit = 3;
* @return The readLimit.
*/
long getReadLimit();
}
/**
*
* Request object for ByteStream.Read.
*
*
* Protobuf type {@code google.bytestream.ReadRequest}
*/
public static final class ReadRequest extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:google.bytestream.ReadRequest)
ReadRequestOrBuilder {
private static final long serialVersionUID = 0L;
// Use ReadRequest.newBuilder() to construct.
private ReadRequest(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private ReadRequest() {
resourceName_ = "";
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new ReadRequest();
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return com.google.bytestream.ByteStreamProto.internal_static_google_bytestream_ReadRequest_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.google.bytestream.ByteStreamProto.internal_static_google_bytestream_ReadRequest_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.google.bytestream.ByteStreamProto.ReadRequest.class, com.google.bytestream.ByteStreamProto.ReadRequest.Builder.class);
}
public static final int RESOURCE_NAME_FIELD_NUMBER = 1;
@SuppressWarnings("serial")
private volatile java.lang.Object resourceName_ = "";
/**
*
*
* string resource_name = 1;
* @return The bytes for resourceName.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getResourceNameBytes() {
java.lang.Object ref = resourceName_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
resourceName_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int READ_OFFSET_FIELD_NUMBER = 2;
private long readOffset_ = 0L;
/**
*
* The offset for the first byte to return in the read, relative to the start
* of the resource.
*
* A `read_offset` that is negative or greater than the size of the resource
* will cause an `OUT_OF_RANGE` error.
*
*
* int64 read_offset = 2;
* @return The readOffset.
*/
@java.lang.Override
public long getReadOffset() {
return readOffset_;
}
public static final int READ_LIMIT_FIELD_NUMBER = 3;
private long readLimit_ = 0L;
/**
*
* The maximum number of `data` bytes the server is allowed to return in the
* sum of all `ReadResponse` messages. A `read_limit` of zero indicates that
* there is no limit, and a negative `read_limit` will cause an error.
*
* If the stream returns fewer bytes than allowed by the `read_limit` and no
* error occurred, the stream includes all data from the `read_offset` to the
* end of the resource.
*
*
* string resource_name = 1;
* @param value The bytes for resourceName to set.
* @return This builder for chaining.
*/
public Builder setResourceNameBytes(
com.google.protobuf.ByteString value) {
if (value == null) { throw new NullPointerException(); }
checkByteStringIsUtf8(value);
resourceName_ = value;
bitField0_ |= 0x00000001;
onChanged();
return this;
}
private long readOffset_ ;
/**
*
* The offset for the first byte to return in the read, relative to the start
* of the resource.
*
* A `read_offset` that is negative or greater than the size of the resource
* will cause an `OUT_OF_RANGE` error.
*
*
* int64 read_offset = 2;
* @return The readOffset.
*/
@java.lang.Override
public long getReadOffset() {
return readOffset_;
}
/**
*
* The offset for the first byte to return in the read, relative to the start
* of the resource.
*
* A `read_offset` that is negative or greater than the size of the resource
* will cause an `OUT_OF_RANGE` error.
*
*
* int64 read_offset = 2;
* @param value The readOffset to set.
* @return This builder for chaining.
*/
public Builder setReadOffset(long value) {
readOffset_ = value;
bitField0_ |= 0x00000002;
onChanged();
return this;
}
/**
*
* The offset for the first byte to return in the read, relative to the start
* of the resource.
*
* A `read_offset` that is negative or greater than the size of the resource
* will cause an `OUT_OF_RANGE` error.
*
*
* int64 read_offset = 2;
* @return This builder for chaining.
*/
public Builder clearReadOffset() {
bitField0_ = (bitField0_ & ~0x00000002);
readOffset_ = 0L;
onChanged();
return this;
}
private long readLimit_ ;
/**
*
* The maximum number of `data` bytes the server is allowed to return in the
* sum of all `ReadResponse` messages. A `read_limit` of zero indicates that
* there is no limit, and a negative `read_limit` will cause an error.
*
* If the stream returns fewer bytes than allowed by the `read_limit` and no
* error occurred, the stream includes all data from the `read_offset` to the
* end of the resource.
*
*
* int64 read_limit = 3;
* @return The readLimit.
*/
@java.lang.Override
public long getReadLimit() {
return readLimit_;
}
/**
*
* The maximum number of `data` bytes the server is allowed to return in the
* sum of all `ReadResponse` messages. A `read_limit` of zero indicates that
* there is no limit, and a negative `read_limit` will cause an error.
*
* If the stream returns fewer bytes than allowed by the `read_limit` and no
* error occurred, the stream includes all data from the `read_offset` to the
* end of the resource.
*
*
* int64 read_limit = 3;
* @param value The readLimit to set.
* @return This builder for chaining.
*/
public Builder setReadLimit(long value) {
readLimit_ = value;
bitField0_ |= 0x00000004;
onChanged();
return this;
}
/**
*
* The maximum number of `data` bytes the server is allowed to return in the
* sum of all `ReadResponse` messages. A `read_limit` of zero indicates that
* there is no limit, and a negative `read_limit` will cause an error.
*
* If the stream returns fewer bytes than allowed by the `read_limit` and no
* error occurred, the stream includes all data from the `read_offset` to the
* end of the resource.
*
*
* int64 read_limit = 3;
* @return This builder for chaining.
*/
public Builder clearReadLimit() {
bitField0_ = (bitField0_ & ~0x00000004);
readLimit_ = 0L;
onChanged();
return this;
}
@java.lang.Override
public final Builder setUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.setUnknownFields(unknownFields);
}
@java.lang.Override
public final Builder mergeUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.mergeUnknownFields(unknownFields);
}
// @@protoc_insertion_point(builder_scope:google.bytestream.ReadRequest)
}
// @@protoc_insertion_point(class_scope:google.bytestream.ReadRequest)
private static final com.google.bytestream.ByteStreamProto.ReadRequest DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new com.google.bytestream.ByteStreamProto.ReadRequest();
}
public static com.google.bytestream.ByteStreamProto.ReadRequest getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public ReadRequest parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
Builder builder = newBuilder();
try {
builder.mergeFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.setUnfinishedMessage(builder.buildPartial());
} catch (com.google.protobuf.UninitializedMessageException e) {
throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial());
} catch (java.io.IOException e) {
throw new com.google.protobuf.InvalidProtocolBufferException(e)
.setUnfinishedMessage(builder.buildPartial());
}
return builder.buildPartial();
}
};
public static com.google.protobuf.Parser parser() {
return PARSER;
}
@java.lang.Override
public com.google.protobuf.Parser getParserForType() {
return PARSER;
}
@java.lang.Override
public com.google.bytestream.ByteStreamProto.ReadRequest getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface ReadResponseOrBuilder extends
// @@protoc_insertion_point(interface_extends:google.bytestream.ReadResponse)
com.google.protobuf.MessageOrBuilder {
/**
*
* A portion of the data for the resource. The service **may** leave `data`
* empty for any given `ReadResponse`. This enables the service to inform the
* client that the request is still live while it is running an operation to
* generate more data.
*
*
* bytes data = 10;
* @return The data.
*/
com.google.protobuf.ByteString getData();
}
/**
*
* Response object for ByteStream.Read.
*
*
* Protobuf type {@code google.bytestream.ReadResponse}
*/
public static final class ReadResponse extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:google.bytestream.ReadResponse)
ReadResponseOrBuilder {
private static final long serialVersionUID = 0L;
// Use ReadResponse.newBuilder() to construct.
private ReadResponse(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private ReadResponse() {
data_ = com.google.protobuf.ByteString.EMPTY;
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new ReadResponse();
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return com.google.bytestream.ByteStreamProto.internal_static_google_bytestream_ReadResponse_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.google.bytestream.ByteStreamProto.internal_static_google_bytestream_ReadResponse_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.google.bytestream.ByteStreamProto.ReadResponse.class, com.google.bytestream.ByteStreamProto.ReadResponse.Builder.class);
}
public static final int DATA_FIELD_NUMBER = 10;
private com.google.protobuf.ByteString data_ = com.google.protobuf.ByteString.EMPTY;
/**
*
* A portion of the data for the resource. The service **may** leave `data`
* empty for any given `ReadResponse`. This enables the service to inform the
* client that the request is still live while it is running an operation to
* generate more data.
*
*
* bytes data = 10;
* @return The data.
*/
@java.lang.Override
public com.google.protobuf.ByteString getData() {
return data_;
}
private byte memoizedIsInitialized = -1;
@java.lang.Override
public final boolean isInitialized() {
byte isInitialized = memoizedIsInitialized;
if (isInitialized == 1) return true;
if (isInitialized == 0) return false;
memoizedIsInitialized = 1;
return true;
}
@java.lang.Override
public void writeTo(com.google.protobuf.CodedOutputStream output)
throws java.io.IOException {
if (!data_.isEmpty()) {
output.writeBytes(10, data_);
}
getUnknownFields().writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (!data_.isEmpty()) {
size += com.google.protobuf.CodedOutputStream
.computeBytesSize(10, data_);
}
size += getUnknownFields().getSerializedSize();
memoizedSize = size;
return size;
}
@java.lang.Override
public boolean equals(final java.lang.Object obj) {
if (obj == this) {
return true;
}
if (!(obj instanceof com.google.bytestream.ByteStreamProto.ReadResponse)) {
return super.equals(obj);
}
com.google.bytestream.ByteStreamProto.ReadResponse other = (com.google.bytestream.ByteStreamProto.ReadResponse) obj;
if (!getData()
.equals(other.getData())) return false;
if (!getUnknownFields().equals(other.getUnknownFields())) return false;
return true;
}
@java.lang.Override
public int hashCode() {
if (memoizedHashCode != 0) {
return memoizedHashCode;
}
int hash = 41;
hash = (19 * hash) + getDescriptor().hashCode();
hash = (37 * hash) + DATA_FIELD_NUMBER;
hash = (53 * hash) + getData().hashCode();
hash = (29 * hash) + getUnknownFields().hashCode();
memoizedHashCode = hash;
return hash;
}
public static com.google.bytestream.ByteStreamProto.ReadResponse parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.google.bytestream.ByteStreamProto.ReadResponse parseFrom(
java.nio.ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.google.bytestream.ByteStreamProto.ReadResponse parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.google.bytestream.ByteStreamProto.ReadResponse parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.google.bytestream.ByteStreamProto.ReadResponse parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.google.bytestream.ByteStreamProto.ReadResponse parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.google.bytestream.ByteStreamProto.ReadResponse parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static com.google.bytestream.ByteStreamProto.ReadResponse parseFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
public static com.google.bytestream.ByteStreamProto.ReadResponse parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static com.google.bytestream.ByteStreamProto.ReadResponse parseDelimitedFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input, extensionRegistry);
}
public static com.google.bytestream.ByteStreamProto.ReadResponse parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static com.google.bytestream.ByteStreamProto.ReadResponse parseFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
@java.lang.Override
public Builder newBuilderForType() { return newBuilder(); }
public static Builder newBuilder() {
return DEFAULT_INSTANCE.toBuilder();
}
public static Builder newBuilder(com.google.bytestream.ByteStreamProto.ReadResponse prototype) {
return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
}
@java.lang.Override
public Builder toBuilder() {
return this == DEFAULT_INSTANCE
? new Builder() : new Builder().mergeFrom(this);
}
@java.lang.Override
protected Builder newBuilderForType(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
Builder builder = new Builder(parent);
return builder;
}
/**
*
* Response object for ByteStream.Read.
*
*
* Protobuf type {@code google.bytestream.ReadResponse}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:google.bytestream.ReadResponse)
com.google.bytestream.ByteStreamProto.ReadResponseOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return com.google.bytestream.ByteStreamProto.internal_static_google_bytestream_ReadResponse_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.google.bytestream.ByteStreamProto.internal_static_google_bytestream_ReadResponse_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.google.bytestream.ByteStreamProto.ReadResponse.class, com.google.bytestream.ByteStreamProto.ReadResponse.Builder.class);
}
// Construct using com.google.bytestream.ByteStreamProto.ReadResponse.newBuilder()
private Builder() {
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
}
@java.lang.Override
public Builder clear() {
super.clear();
bitField0_ = 0;
data_ = com.google.protobuf.ByteString.EMPTY;
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return com.google.bytestream.ByteStreamProto.internal_static_google_bytestream_ReadResponse_descriptor;
}
@java.lang.Override
public com.google.bytestream.ByteStreamProto.ReadResponse getDefaultInstanceForType() {
return com.google.bytestream.ByteStreamProto.ReadResponse.getDefaultInstance();
}
@java.lang.Override
public com.google.bytestream.ByteStreamProto.ReadResponse build() {
com.google.bytestream.ByteStreamProto.ReadResponse result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public com.google.bytestream.ByteStreamProto.ReadResponse buildPartial() {
com.google.bytestream.ByteStreamProto.ReadResponse result = new com.google.bytestream.ByteStreamProto.ReadResponse(this);
if (bitField0_ != 0) { buildPartial0(result); }
onBuilt();
return result;
}
private void buildPartial0(com.google.bytestream.ByteStreamProto.ReadResponse result) {
int from_bitField0_ = bitField0_;
if (((from_bitField0_ & 0x00000001) != 0)) {
result.data_ = data_;
}
}
@java.lang.Override
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof com.google.bytestream.ByteStreamProto.ReadResponse) {
return mergeFrom((com.google.bytestream.ByteStreamProto.ReadResponse)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(com.google.bytestream.ByteStreamProto.ReadResponse other) {
if (other == com.google.bytestream.ByteStreamProto.ReadResponse.getDefaultInstance()) return this;
if (other.getData() != com.google.protobuf.ByteString.EMPTY) {
setData(other.getData());
}
this.mergeUnknownFields(other.getUnknownFields());
onChanged();
return this;
}
@java.lang.Override
public final boolean isInitialized() {
return true;
}
@java.lang.Override
public Builder mergeFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
if (extensionRegistry == null) {
throw new java.lang.NullPointerException();
}
try {
boolean done = false;
while (!done) {
int tag = input.readTag();
switch (tag) {
case 0:
done = true;
break;
case 82: {
data_ = input.readBytes();
bitField0_ |= 0x00000001;
break;
} // case 82
default: {
if (!super.parseUnknownField(input, extensionRegistry, tag)) {
done = true; // was an endgroup tag
}
break;
} // default:
} // switch (tag)
} // while (!done)
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.unwrapIOException();
} finally {
onChanged();
} // finally
return this;
}
private int bitField0_;
private com.google.protobuf.ByteString data_ = com.google.protobuf.ByteString.EMPTY;
/**
*
* A portion of the data for the resource. The service **may** leave `data`
* empty for any given `ReadResponse`. This enables the service to inform the
* client that the request is still live while it is running an operation to
* generate more data.
*
*
* bytes data = 10;
* @return The data.
*/
@java.lang.Override
public com.google.protobuf.ByteString getData() {
return data_;
}
/**
*
* A portion of the data for the resource. The service **may** leave `data`
* empty for any given `ReadResponse`. This enables the service to inform the
* client that the request is still live while it is running an operation to
* generate more data.
*
*
* bytes data = 10;
* @param value The data to set.
* @return This builder for chaining.
*/
public Builder setData(com.google.protobuf.ByteString value) {
if (value == null) { throw new NullPointerException(); }
data_ = value;
bitField0_ |= 0x00000001;
onChanged();
return this;
}
/**
*
* A portion of the data for the resource. The service **may** leave `data`
* empty for any given `ReadResponse`. This enables the service to inform the
* client that the request is still live while it is running an operation to
* generate more data.
*
*
* bytes data = 10;
* @return This builder for chaining.
*/
public Builder clearData() {
bitField0_ = (bitField0_ & ~0x00000001);
data_ = getDefaultInstance().getData();
onChanged();
return this;
}
@java.lang.Override
public final Builder setUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.setUnknownFields(unknownFields);
}
@java.lang.Override
public final Builder mergeUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.mergeUnknownFields(unknownFields);
}
// @@protoc_insertion_point(builder_scope:google.bytestream.ReadResponse)
}
// @@protoc_insertion_point(class_scope:google.bytestream.ReadResponse)
private static final com.google.bytestream.ByteStreamProto.ReadResponse DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new com.google.bytestream.ByteStreamProto.ReadResponse();
}
public static com.google.bytestream.ByteStreamProto.ReadResponse getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public ReadResponse parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
Builder builder = newBuilder();
try {
builder.mergeFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.setUnfinishedMessage(builder.buildPartial());
} catch (com.google.protobuf.UninitializedMessageException e) {
throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial());
} catch (java.io.IOException e) {
throw new com.google.protobuf.InvalidProtocolBufferException(e)
.setUnfinishedMessage(builder.buildPartial());
}
return builder.buildPartial();
}
};
public static com.google.protobuf.Parser parser() {
return PARSER;
}
@java.lang.Override
public com.google.protobuf.Parser getParserForType() {
return PARSER;
}
@java.lang.Override
public com.google.bytestream.ByteStreamProto.ReadResponse getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface WriteRequestOrBuilder extends
// @@protoc_insertion_point(interface_extends:google.bytestream.WriteRequest)
com.google.protobuf.MessageOrBuilder {
/**
*
* The name of the resource to write. This **must** be set on the first
* `WriteRequest` of each `Write()` action. If it is set on subsequent calls,
* it **must** match the value of the first request.
*
* The name of the resource to write. This **must** be set on the first
* `WriteRequest` of each `Write()` action. If it is set on subsequent calls,
* it **must** match the value of the first request.
*
*
* string resource_name = 1;
* @return The bytes for resourceName.
*/
com.google.protobuf.ByteString
getResourceNameBytes();
/**
*
* The offset from the beginning of the resource at which the data should be
* written. It is required on all `WriteRequest`s.
*
* In the first `WriteRequest` of a `Write()` action, it indicates
* the initial offset for the `Write()` call. The value **must** be equal to
* the `committed_size` that a call to `QueryWriteStatus()` would return.
*
* On subsequent calls, this value **must** be set and **must** be equal to
* the sum of the first `write_offset` and the sizes of all `data` bundles
* sent previously on this stream.
*
* An incorrect value will cause an error.
*
*
* int64 write_offset = 2;
* @return The writeOffset.
*/
long getWriteOffset();
/**
*
* If `true`, this indicates that the write is complete. Sending any
* `WriteRequest`s subsequent to one in which `finish_write` is `true` will
* cause an error.
*
* A portion of the data for the resource. The client **may** leave `data`
* empty for any given `WriteRequest`. This enables the client to inform the
* service that the request is still live while it is running an operation to
* generate more data.
*
*
* bytes data = 10;
* @return The data.
*/
com.google.protobuf.ByteString getData();
}
/**
*
* Request object for ByteStream.Write.
*
*
* Protobuf type {@code google.bytestream.WriteRequest}
*/
public static final class WriteRequest extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:google.bytestream.WriteRequest)
WriteRequestOrBuilder {
private static final long serialVersionUID = 0L;
// Use WriteRequest.newBuilder() to construct.
private WriteRequest(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private WriteRequest() {
resourceName_ = "";
data_ = com.google.protobuf.ByteString.EMPTY;
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new WriteRequest();
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return com.google.bytestream.ByteStreamProto.internal_static_google_bytestream_WriteRequest_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.google.bytestream.ByteStreamProto.internal_static_google_bytestream_WriteRequest_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.google.bytestream.ByteStreamProto.WriteRequest.class, com.google.bytestream.ByteStreamProto.WriteRequest.Builder.class);
}
public static final int RESOURCE_NAME_FIELD_NUMBER = 1;
@SuppressWarnings("serial")
private volatile java.lang.Object resourceName_ = "";
/**
*
* The name of the resource to write. This **must** be set on the first
* `WriteRequest` of each `Write()` action. If it is set on subsequent calls,
* it **must** match the value of the first request.
*
* The name of the resource to write. This **must** be set on the first
* `WriteRequest` of each `Write()` action. If it is set on subsequent calls,
* it **must** match the value of the first request.
*
*
* string resource_name = 1;
* @return The bytes for resourceName.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getResourceNameBytes() {
java.lang.Object ref = resourceName_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
resourceName_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int WRITE_OFFSET_FIELD_NUMBER = 2;
private long writeOffset_ = 0L;
/**
*
* The offset from the beginning of the resource at which the data should be
* written. It is required on all `WriteRequest`s.
*
* In the first `WriteRequest` of a `Write()` action, it indicates
* the initial offset for the `Write()` call. The value **must** be equal to
* the `committed_size` that a call to `QueryWriteStatus()` would return.
*
* On subsequent calls, this value **must** be set and **must** be equal to
* the sum of the first `write_offset` and the sizes of all `data` bundles
* sent previously on this stream.
*
* An incorrect value will cause an error.
*
*
* int64 write_offset = 2;
* @return The writeOffset.
*/
@java.lang.Override
public long getWriteOffset() {
return writeOffset_;
}
public static final int FINISH_WRITE_FIELD_NUMBER = 3;
private boolean finishWrite_ = false;
/**
*
* If `true`, this indicates that the write is complete. Sending any
* `WriteRequest`s subsequent to one in which `finish_write` is `true` will
* cause an error.
*
*
* bool finish_write = 3;
* @return The finishWrite.
*/
@java.lang.Override
public boolean getFinishWrite() {
return finishWrite_;
}
public static final int DATA_FIELD_NUMBER = 10;
private com.google.protobuf.ByteString data_ = com.google.protobuf.ByteString.EMPTY;
/**
*
* A portion of the data for the resource. The client **may** leave `data`
* empty for any given `WriteRequest`. This enables the client to inform the
* service that the request is still live while it is running an operation to
* generate more data.
*
*
* Protobuf type {@code google.bytestream.WriteRequest}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:google.bytestream.WriteRequest)
com.google.bytestream.ByteStreamProto.WriteRequestOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return com.google.bytestream.ByteStreamProto.internal_static_google_bytestream_WriteRequest_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.google.bytestream.ByteStreamProto.internal_static_google_bytestream_WriteRequest_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.google.bytestream.ByteStreamProto.WriteRequest.class, com.google.bytestream.ByteStreamProto.WriteRequest.Builder.class);
}
// Construct using com.google.bytestream.ByteStreamProto.WriteRequest.newBuilder()
private Builder() {
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
}
@java.lang.Override
public Builder clear() {
super.clear();
bitField0_ = 0;
resourceName_ = "";
writeOffset_ = 0L;
finishWrite_ = false;
data_ = com.google.protobuf.ByteString.EMPTY;
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return com.google.bytestream.ByteStreamProto.internal_static_google_bytestream_WriteRequest_descriptor;
}
@java.lang.Override
public com.google.bytestream.ByteStreamProto.WriteRequest getDefaultInstanceForType() {
return com.google.bytestream.ByteStreamProto.WriteRequest.getDefaultInstance();
}
@java.lang.Override
public com.google.bytestream.ByteStreamProto.WriteRequest build() {
com.google.bytestream.ByteStreamProto.WriteRequest result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public com.google.bytestream.ByteStreamProto.WriteRequest buildPartial() {
com.google.bytestream.ByteStreamProto.WriteRequest result = new com.google.bytestream.ByteStreamProto.WriteRequest(this);
if (bitField0_ != 0) { buildPartial0(result); }
onBuilt();
return result;
}
private void buildPartial0(com.google.bytestream.ByteStreamProto.WriteRequest result) {
int from_bitField0_ = bitField0_;
if (((from_bitField0_ & 0x00000001) != 0)) {
result.resourceName_ = resourceName_;
}
if (((from_bitField0_ & 0x00000002) != 0)) {
result.writeOffset_ = writeOffset_;
}
if (((from_bitField0_ & 0x00000004) != 0)) {
result.finishWrite_ = finishWrite_;
}
if (((from_bitField0_ & 0x00000008) != 0)) {
result.data_ = data_;
}
}
@java.lang.Override
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof com.google.bytestream.ByteStreamProto.WriteRequest) {
return mergeFrom((com.google.bytestream.ByteStreamProto.WriteRequest)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(com.google.bytestream.ByteStreamProto.WriteRequest other) {
if (other == com.google.bytestream.ByteStreamProto.WriteRequest.getDefaultInstance()) return this;
if (!other.getResourceName().isEmpty()) {
resourceName_ = other.resourceName_;
bitField0_ |= 0x00000001;
onChanged();
}
if (other.getWriteOffset() != 0L) {
setWriteOffset(other.getWriteOffset());
}
if (other.getFinishWrite() != false) {
setFinishWrite(other.getFinishWrite());
}
if (other.getData() != com.google.protobuf.ByteString.EMPTY) {
setData(other.getData());
}
this.mergeUnknownFields(other.getUnknownFields());
onChanged();
return this;
}
@java.lang.Override
public final boolean isInitialized() {
return true;
}
@java.lang.Override
public Builder mergeFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
if (extensionRegistry == null) {
throw new java.lang.NullPointerException();
}
try {
boolean done = false;
while (!done) {
int tag = input.readTag();
switch (tag) {
case 0:
done = true;
break;
case 10: {
resourceName_ = input.readStringRequireUtf8();
bitField0_ |= 0x00000001;
break;
} // case 10
case 16: {
writeOffset_ = input.readInt64();
bitField0_ |= 0x00000002;
break;
} // case 16
case 24: {
finishWrite_ = input.readBool();
bitField0_ |= 0x00000004;
break;
} // case 24
case 82: {
data_ = input.readBytes();
bitField0_ |= 0x00000008;
break;
} // case 82
default: {
if (!super.parseUnknownField(input, extensionRegistry, tag)) {
done = true; // was an endgroup tag
}
break;
} // default:
} // switch (tag)
} // while (!done)
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.unwrapIOException();
} finally {
onChanged();
} // finally
return this;
}
private int bitField0_;
private java.lang.Object resourceName_ = "";
/**
*
* The name of the resource to write. This **must** be set on the first
* `WriteRequest` of each `Write()` action. If it is set on subsequent calls,
* it **must** match the value of the first request.
*
* The name of the resource to write. This **must** be set on the first
* `WriteRequest` of each `Write()` action. If it is set on subsequent calls,
* it **must** match the value of the first request.
*
*
* string resource_name = 1;
* @return The bytes for resourceName.
*/
public com.google.protobuf.ByteString
getResourceNameBytes() {
java.lang.Object ref = resourceName_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
resourceName_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
*
* The name of the resource to write. This **must** be set on the first
* `WriteRequest` of each `Write()` action. If it is set on subsequent calls,
* it **must** match the value of the first request.
*
*
* string resource_name = 1;
* @param value The resourceName to set.
* @return This builder for chaining.
*/
public Builder setResourceName(
java.lang.String value) {
if (value == null) { throw new NullPointerException(); }
resourceName_ = value;
bitField0_ |= 0x00000001;
onChanged();
return this;
}
/**
*
* The name of the resource to write. This **must** be set on the first
* `WriteRequest` of each `Write()` action. If it is set on subsequent calls,
* it **must** match the value of the first request.
*
* The name of the resource to write. This **must** be set on the first
* `WriteRequest` of each `Write()` action. If it is set on subsequent calls,
* it **must** match the value of the first request.
*
*
* string resource_name = 1;
* @param value The bytes for resourceName to set.
* @return This builder for chaining.
*/
public Builder setResourceNameBytes(
com.google.protobuf.ByteString value) {
if (value == null) { throw new NullPointerException(); }
checkByteStringIsUtf8(value);
resourceName_ = value;
bitField0_ |= 0x00000001;
onChanged();
return this;
}
private long writeOffset_ ;
/**
*
* The offset from the beginning of the resource at which the data should be
* written. It is required on all `WriteRequest`s.
*
* In the first `WriteRequest` of a `Write()` action, it indicates
* the initial offset for the `Write()` call. The value **must** be equal to
* the `committed_size` that a call to `QueryWriteStatus()` would return.
*
* On subsequent calls, this value **must** be set and **must** be equal to
* the sum of the first `write_offset` and the sizes of all `data` bundles
* sent previously on this stream.
*
* An incorrect value will cause an error.
*
*
* int64 write_offset = 2;
* @return The writeOffset.
*/
@java.lang.Override
public long getWriteOffset() {
return writeOffset_;
}
/**
*
* The offset from the beginning of the resource at which the data should be
* written. It is required on all `WriteRequest`s.
*
* In the first `WriteRequest` of a `Write()` action, it indicates
* the initial offset for the `Write()` call. The value **must** be equal to
* the `committed_size` that a call to `QueryWriteStatus()` would return.
*
* On subsequent calls, this value **must** be set and **must** be equal to
* the sum of the first `write_offset` and the sizes of all `data` bundles
* sent previously on this stream.
*
* An incorrect value will cause an error.
*
*
* int64 write_offset = 2;
* @param value The writeOffset to set.
* @return This builder for chaining.
*/
public Builder setWriteOffset(long value) {
writeOffset_ = value;
bitField0_ |= 0x00000002;
onChanged();
return this;
}
/**
*
* The offset from the beginning of the resource at which the data should be
* written. It is required on all `WriteRequest`s.
*
* In the first `WriteRequest` of a `Write()` action, it indicates
* the initial offset for the `Write()` call. The value **must** be equal to
* the `committed_size` that a call to `QueryWriteStatus()` would return.
*
* On subsequent calls, this value **must** be set and **must** be equal to
* the sum of the first `write_offset` and the sizes of all `data` bundles
* sent previously on this stream.
*
* An incorrect value will cause an error.
*
* If `true`, this indicates that the write is complete. Sending any
* `WriteRequest`s subsequent to one in which `finish_write` is `true` will
* cause an error.
*
* If `true`, this indicates that the write is complete. Sending any
* `WriteRequest`s subsequent to one in which `finish_write` is `true` will
* cause an error.
*
*
* bool finish_write = 3;
* @param value The finishWrite to set.
* @return This builder for chaining.
*/
public Builder setFinishWrite(boolean value) {
finishWrite_ = value;
bitField0_ |= 0x00000004;
onChanged();
return this;
}
/**
*
* If `true`, this indicates that the write is complete. Sending any
* `WriteRequest`s subsequent to one in which `finish_write` is `true` will
* cause an error.
*
* A portion of the data for the resource. The client **may** leave `data`
* empty for any given `WriteRequest`. This enables the client to inform the
* service that the request is still live while it is running an operation to
* generate more data.
*
*
* bytes data = 10;
* @return The data.
*/
@java.lang.Override
public com.google.protobuf.ByteString getData() {
return data_;
}
/**
*
* A portion of the data for the resource. The client **may** leave `data`
* empty for any given `WriteRequest`. This enables the client to inform the
* service that the request is still live while it is running an operation to
* generate more data.
*
*
* bytes data = 10;
* @param value The data to set.
* @return This builder for chaining.
*/
public Builder setData(com.google.protobuf.ByteString value) {
if (value == null) { throw new NullPointerException(); }
data_ = value;
bitField0_ |= 0x00000008;
onChanged();
return this;
}
/**
*
* A portion of the data for the resource. The client **may** leave `data`
* empty for any given `WriteRequest`. This enables the client to inform the
* service that the request is still live while it is running an operation to
* generate more data.
*
*
* bytes data = 10;
* @return This builder for chaining.
*/
public Builder clearData() {
bitField0_ = (bitField0_ & ~0x00000008);
data_ = getDefaultInstance().getData();
onChanged();
return this;
}
@java.lang.Override
public final Builder setUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.setUnknownFields(unknownFields);
}
@java.lang.Override
public final Builder mergeUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.mergeUnknownFields(unknownFields);
}
// @@protoc_insertion_point(builder_scope:google.bytestream.WriteRequest)
}
// @@protoc_insertion_point(class_scope:google.bytestream.WriteRequest)
private static final com.google.bytestream.ByteStreamProto.WriteRequest DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new com.google.bytestream.ByteStreamProto.WriteRequest();
}
public static com.google.bytestream.ByteStreamProto.WriteRequest getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public WriteRequest parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
Builder builder = newBuilder();
try {
builder.mergeFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.setUnfinishedMessage(builder.buildPartial());
} catch (com.google.protobuf.UninitializedMessageException e) {
throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial());
} catch (java.io.IOException e) {
throw new com.google.protobuf.InvalidProtocolBufferException(e)
.setUnfinishedMessage(builder.buildPartial());
}
return builder.buildPartial();
}
};
public static com.google.protobuf.Parser parser() {
return PARSER;
}
@java.lang.Override
public com.google.protobuf.Parser getParserForType() {
return PARSER;
}
@java.lang.Override
public com.google.bytestream.ByteStreamProto.WriteRequest getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface WriteResponseOrBuilder extends
// @@protoc_insertion_point(interface_extends:google.bytestream.WriteResponse)
com.google.protobuf.MessageOrBuilder {
/**
*
* The number of bytes that have been processed for the given resource.
*
*
* int64 committed_size = 1;
* @return The committedSize.
*/
long getCommittedSize();
}
/**
*
* Response object for ByteStream.Write.
*
*
* Protobuf type {@code google.bytestream.WriteResponse}
*/
public static final class WriteResponse extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:google.bytestream.WriteResponse)
WriteResponseOrBuilder {
private static final long serialVersionUID = 0L;
// Use WriteResponse.newBuilder() to construct.
private WriteResponse(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private WriteResponse() {
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new WriteResponse();
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return com.google.bytestream.ByteStreamProto.internal_static_google_bytestream_WriteResponse_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.google.bytestream.ByteStreamProto.internal_static_google_bytestream_WriteResponse_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.google.bytestream.ByteStreamProto.WriteResponse.class, com.google.bytestream.ByteStreamProto.WriteResponse.Builder.class);
}
public static final int COMMITTED_SIZE_FIELD_NUMBER = 1;
private long committedSize_ = 0L;
/**
*
* The number of bytes that have been processed for the given resource.
*
*
* int64 committed_size = 1;
* @return The committedSize.
*/
@java.lang.Override
public long getCommittedSize() {
return committedSize_;
}
private byte memoizedIsInitialized = -1;
@java.lang.Override
public final boolean isInitialized() {
byte isInitialized = memoizedIsInitialized;
if (isInitialized == 1) return true;
if (isInitialized == 0) return false;
memoizedIsInitialized = 1;
return true;
}
@java.lang.Override
public void writeTo(com.google.protobuf.CodedOutputStream output)
throws java.io.IOException {
if (committedSize_ != 0L) {
output.writeInt64(1, committedSize_);
}
getUnknownFields().writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (committedSize_ != 0L) {
size += com.google.protobuf.CodedOutputStream
.computeInt64Size(1, committedSize_);
}
size += getUnknownFields().getSerializedSize();
memoizedSize = size;
return size;
}
@java.lang.Override
public boolean equals(final java.lang.Object obj) {
if (obj == this) {
return true;
}
if (!(obj instanceof com.google.bytestream.ByteStreamProto.WriteResponse)) {
return super.equals(obj);
}
com.google.bytestream.ByteStreamProto.WriteResponse other = (com.google.bytestream.ByteStreamProto.WriteResponse) obj;
if (getCommittedSize()
!= other.getCommittedSize()) return false;
if (!getUnknownFields().equals(other.getUnknownFields())) return false;
return true;
}
@java.lang.Override
public int hashCode() {
if (memoizedHashCode != 0) {
return memoizedHashCode;
}
int hash = 41;
hash = (19 * hash) + getDescriptor().hashCode();
hash = (37 * hash) + COMMITTED_SIZE_FIELD_NUMBER;
hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
getCommittedSize());
hash = (29 * hash) + getUnknownFields().hashCode();
memoizedHashCode = hash;
return hash;
}
public static com.google.bytestream.ByteStreamProto.WriteResponse parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.google.bytestream.ByteStreamProto.WriteResponse parseFrom(
java.nio.ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.google.bytestream.ByteStreamProto.WriteResponse parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.google.bytestream.ByteStreamProto.WriteResponse parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.google.bytestream.ByteStreamProto.WriteResponse parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.google.bytestream.ByteStreamProto.WriteResponse parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.google.bytestream.ByteStreamProto.WriteResponse parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static com.google.bytestream.ByteStreamProto.WriteResponse parseFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
public static com.google.bytestream.ByteStreamProto.WriteResponse parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static com.google.bytestream.ByteStreamProto.WriteResponse parseDelimitedFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input, extensionRegistry);
}
public static com.google.bytestream.ByteStreamProto.WriteResponse parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static com.google.bytestream.ByteStreamProto.WriteResponse parseFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
@java.lang.Override
public Builder newBuilderForType() { return newBuilder(); }
public static Builder newBuilder() {
return DEFAULT_INSTANCE.toBuilder();
}
public static Builder newBuilder(com.google.bytestream.ByteStreamProto.WriteResponse prototype) {
return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
}
@java.lang.Override
public Builder toBuilder() {
return this == DEFAULT_INSTANCE
? new Builder() : new Builder().mergeFrom(this);
}
@java.lang.Override
protected Builder newBuilderForType(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
Builder builder = new Builder(parent);
return builder;
}
/**
*
* Response object for ByteStream.Write.
*
*
* Protobuf type {@code google.bytestream.WriteResponse}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:google.bytestream.WriteResponse)
com.google.bytestream.ByteStreamProto.WriteResponseOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return com.google.bytestream.ByteStreamProto.internal_static_google_bytestream_WriteResponse_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.google.bytestream.ByteStreamProto.internal_static_google_bytestream_WriteResponse_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.google.bytestream.ByteStreamProto.WriteResponse.class, com.google.bytestream.ByteStreamProto.WriteResponse.Builder.class);
}
// Construct using com.google.bytestream.ByteStreamProto.WriteResponse.newBuilder()
private Builder() {
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
}
@java.lang.Override
public Builder clear() {
super.clear();
bitField0_ = 0;
committedSize_ = 0L;
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return com.google.bytestream.ByteStreamProto.internal_static_google_bytestream_WriteResponse_descriptor;
}
@java.lang.Override
public com.google.bytestream.ByteStreamProto.WriteResponse getDefaultInstanceForType() {
return com.google.bytestream.ByteStreamProto.WriteResponse.getDefaultInstance();
}
@java.lang.Override
public com.google.bytestream.ByteStreamProto.WriteResponse build() {
com.google.bytestream.ByteStreamProto.WriteResponse result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public com.google.bytestream.ByteStreamProto.WriteResponse buildPartial() {
com.google.bytestream.ByteStreamProto.WriteResponse result = new com.google.bytestream.ByteStreamProto.WriteResponse(this);
if (bitField0_ != 0) { buildPartial0(result); }
onBuilt();
return result;
}
private void buildPartial0(com.google.bytestream.ByteStreamProto.WriteResponse result) {
int from_bitField0_ = bitField0_;
if (((from_bitField0_ & 0x00000001) != 0)) {
result.committedSize_ = committedSize_;
}
}
@java.lang.Override
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof com.google.bytestream.ByteStreamProto.WriteResponse) {
return mergeFrom((com.google.bytestream.ByteStreamProto.WriteResponse)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(com.google.bytestream.ByteStreamProto.WriteResponse other) {
if (other == com.google.bytestream.ByteStreamProto.WriteResponse.getDefaultInstance()) return this;
if (other.getCommittedSize() != 0L) {
setCommittedSize(other.getCommittedSize());
}
this.mergeUnknownFields(other.getUnknownFields());
onChanged();
return this;
}
@java.lang.Override
public final boolean isInitialized() {
return true;
}
@java.lang.Override
public Builder mergeFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
if (extensionRegistry == null) {
throw new java.lang.NullPointerException();
}
try {
boolean done = false;
while (!done) {
int tag = input.readTag();
switch (tag) {
case 0:
done = true;
break;
case 8: {
committedSize_ = input.readInt64();
bitField0_ |= 0x00000001;
break;
} // case 8
default: {
if (!super.parseUnknownField(input, extensionRegistry, tag)) {
done = true; // was an endgroup tag
}
break;
} // default:
} // switch (tag)
} // while (!done)
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.unwrapIOException();
} finally {
onChanged();
} // finally
return this;
}
private int bitField0_;
private long committedSize_ ;
/**
*
* The number of bytes that have been processed for the given resource.
*
*
* int64 committed_size = 1;
* @return The committedSize.
*/
@java.lang.Override
public long getCommittedSize() {
return committedSize_;
}
/**
*
* The number of bytes that have been processed for the given resource.
*
*
* int64 committed_size = 1;
* @param value The committedSize to set.
* @return This builder for chaining.
*/
public Builder setCommittedSize(long value) {
committedSize_ = value;
bitField0_ |= 0x00000001;
onChanged();
return this;
}
/**
*
* The number of bytes that have been processed for the given resource.
*
*
* int64 committed_size = 1;
* @return This builder for chaining.
*/
public Builder clearCommittedSize() {
bitField0_ = (bitField0_ & ~0x00000001);
committedSize_ = 0L;
onChanged();
return this;
}
@java.lang.Override
public final Builder setUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.setUnknownFields(unknownFields);
}
@java.lang.Override
public final Builder mergeUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.mergeUnknownFields(unknownFields);
}
// @@protoc_insertion_point(builder_scope:google.bytestream.WriteResponse)
}
// @@protoc_insertion_point(class_scope:google.bytestream.WriteResponse)
private static final com.google.bytestream.ByteStreamProto.WriteResponse DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new com.google.bytestream.ByteStreamProto.WriteResponse();
}
public static com.google.bytestream.ByteStreamProto.WriteResponse getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public WriteResponse parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
Builder builder = newBuilder();
try {
builder.mergeFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.setUnfinishedMessage(builder.buildPartial());
} catch (com.google.protobuf.UninitializedMessageException e) {
throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial());
} catch (java.io.IOException e) {
throw new com.google.protobuf.InvalidProtocolBufferException(e)
.setUnfinishedMessage(builder.buildPartial());
}
return builder.buildPartial();
}
};
public static com.google.protobuf.Parser parser() {
return PARSER;
}
@java.lang.Override
public com.google.protobuf.Parser getParserForType() {
return PARSER;
}
@java.lang.Override
public com.google.bytestream.ByteStreamProto.WriteResponse getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface QueryWriteStatusRequestOrBuilder extends
// @@protoc_insertion_point(interface_extends:google.bytestream.QueryWriteStatusRequest)
com.google.protobuf.MessageOrBuilder {
/**
*
* The name of the resource whose write status is being requested.
*