Sample code: + * + *
{@code + * // This snippet has been automatically generated and should be regarded as a code template only. + * // It will require modifications to work: + * // - It may require correct/in-range values for request initialization. + * // - It may require specifying regional endpoints when creating the service client as shown in + * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + * try (SequenceServiceClient sequenceServiceClient = SequenceServiceClient.create()) { + * StreamingSequence streamingSequence = StreamingSequence.newBuilder().build(); + * StreamingSequence response = sequenceServiceClient.createStreamingSequence(streamingSequence); + * } + * }+ * + * @param streamingSequence + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final StreamingSequence createStreamingSequence(StreamingSequence streamingSequence) { + CreateStreamingSequenceRequest request = + CreateStreamingSequenceRequest.newBuilder().setStreamingSequence(streamingSequence).build(); + return createStreamingSequence(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Creates a sequence. + * + *
Sample code: + * + *
{@code + * // This snippet has been automatically generated and should be regarded as a code template only. + * // It will require modifications to work: + * // - It may require correct/in-range values for request initialization. + * // - It may require specifying regional endpoints when creating the service client as shown in + * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + * try (SequenceServiceClient sequenceServiceClient = SequenceServiceClient.create()) { + * CreateStreamingSequenceRequest request = + * CreateStreamingSequenceRequest.newBuilder() + * .setStreamingSequence(StreamingSequence.newBuilder().build()) + * .build(); + * StreamingSequence response = sequenceServiceClient.createStreamingSequence(request); + * } + * }+ * + * @param request The request object containing all of the parameters for the API call. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final StreamingSequence createStreamingSequence(CreateStreamingSequenceRequest request) { + return createStreamingSequenceCallable().call(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Creates a sequence. + * + *
Sample code: + * + *
{@code + * // This snippet has been automatically generated and should be regarded as a code template only. + * // It will require modifications to work: + * // - It may require correct/in-range values for request initialization. + * // - It may require specifying regional endpoints when creating the service client as shown in + * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + * try (SequenceServiceClient sequenceServiceClient = SequenceServiceClient.create()) { + * CreateStreamingSequenceRequest request = + * CreateStreamingSequenceRequest.newBuilder() + * .setStreamingSequence(StreamingSequence.newBuilder().build()) + * .build(); + * ApiFuture+ */ + public final UnaryCallablefuture = + * sequenceServiceClient.createStreamingSequenceCallable().futureCall(request); + * // Do something. + * StreamingSequence response = future.get(); + * } + * }
Sample code: + * + *
{@code + * // This snippet has been automatically generated and should be regarded as a code template only. + * // It will require modifications to work: + * // - It may require correct/in-range values for request initialization. + * // - It may require specifying regional endpoints when creating the service client as shown in + * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + * try (SequenceServiceClient sequenceServiceClient = SequenceServiceClient.create()) { + * StreamingSequenceReportName name = StreamingSequenceReportName.of("[STREAMING_SEQUENCE]"); + * StreamingSequenceReport response = sequenceServiceClient.getStreamingSequenceReport(name); + * } + * }+ * + * @param name + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final StreamingSequenceReport getStreamingSequenceReport( + StreamingSequenceReportName name) { + GetStreamingSequenceReportRequest request = + GetStreamingSequenceReportRequest.newBuilder() + .setName(name == null ? null : name.toString()) + .build(); + return getStreamingSequenceReport(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Retrieves a sequence. + * + *
Sample code: + * + *
{@code + * // This snippet has been automatically generated and should be regarded as a code template only. + * // It will require modifications to work: + * // - It may require correct/in-range values for request initialization. + * // - It may require specifying regional endpoints when creating the service client as shown in + * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + * try (SequenceServiceClient sequenceServiceClient = SequenceServiceClient.create()) { + * String name = StreamingSequenceReportName.of("[STREAMING_SEQUENCE]").toString(); + * StreamingSequenceReport response = sequenceServiceClient.getStreamingSequenceReport(name); + * } + * }+ * + * @param name + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final StreamingSequenceReport getStreamingSequenceReport(String name) { + GetStreamingSequenceReportRequest request = + GetStreamingSequenceReportRequest.newBuilder().setName(name).build(); + return getStreamingSequenceReport(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Retrieves a sequence. + * + *
Sample code: + * + *
{@code + * // This snippet has been automatically generated and should be regarded as a code template only. + * // It will require modifications to work: + * // - It may require correct/in-range values for request initialization. + * // - It may require specifying regional endpoints when creating the service client as shown in + * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + * try (SequenceServiceClient sequenceServiceClient = SequenceServiceClient.create()) { + * GetStreamingSequenceReportRequest request = + * GetStreamingSequenceReportRequest.newBuilder() + * .setName(StreamingSequenceReportName.of("[STREAMING_SEQUENCE]").toString()) + * .build(); + * StreamingSequenceReport response = sequenceServiceClient.getStreamingSequenceReport(request); + * } + * }+ * + * @param request The request object containing all of the parameters for the API call. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final StreamingSequenceReport getStreamingSequenceReport( + GetStreamingSequenceReportRequest request) { + return getStreamingSequenceReportCallable().call(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Retrieves a sequence. + * + *
Sample code: + * + *
{@code + * // This snippet has been automatically generated and should be regarded as a code template only. + * // It will require modifications to work: + * // - It may require correct/in-range values for request initialization. + * // - It may require specifying regional endpoints when creating the service client as shown in + * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + * try (SequenceServiceClient sequenceServiceClient = SequenceServiceClient.create()) { + * GetStreamingSequenceReportRequest request = + * GetStreamingSequenceReportRequest.newBuilder() + * .setName(StreamingSequenceReportName.of("[STREAMING_SEQUENCE]").toString()) + * .build(); + * ApiFuture+ */ + public final UnaryCallablefuture = + * sequenceServiceClient.getStreamingSequenceReportCallable().futureCall(request); + * // Do something. + * StreamingSequenceReport response = future.get(); + * } + * }
Sample code: + * + *
{@code + * // This snippet has been automatically generated and should be regarded as a code template only. + * // It will require modifications to work: + * // - It may require correct/in-range values for request initialization. + * // - It may require specifying regional endpoints when creating the service client as shown in + * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + * try (SequenceServiceClient sequenceServiceClient = SequenceServiceClient.create()) { + * AttemptStreamingSequenceRequest request = + * AttemptStreamingSequenceRequest.newBuilder() + * .setName(StreamingSequenceName.of("[STREAMING_SEQUENCE]").toString()) + * .build(); + * ServerStream+ */ + public final ServerStreamingCallable< + AttemptStreamingSequenceRequest, AttemptStreamingSequenceResponse> + attemptStreamingSequenceCallable() { + return stub.attemptStreamingSequenceCallable(); + } + // AUTO-GENERATED DOCUMENTATION AND METHOD. /** * Lists information about the supported locations for this service. diff --git a/showcase/gapic-showcase/src/main/java/com/google/showcase/v1beta1/SequenceServiceSettings.java b/showcase/gapic-showcase/src/main/java/com/google/showcase/v1beta1/SequenceServiceSettings.java index 484bd124e7..083da1863c 100644 --- a/showcase/gapic-showcase/src/main/java/com/google/showcase/v1beta1/SequenceServiceSettings.java +++ b/showcase/gapic-showcase/src/main/java/com/google/showcase/v1beta1/SequenceServiceSettings.java @@ -28,6 +28,7 @@ import com.google.api.gax.rpc.ClientContext; import com.google.api.gax.rpc.ClientSettings; import com.google.api.gax.rpc.PagedCallSettings; +import com.google.api.gax.rpc.ServerStreamingCallSettings; import com.google.api.gax.rpc.StubSettings; import com.google.api.gax.rpc.TransportChannelProvider; import com.google.api.gax.rpc.UnaryCallSettings; @@ -87,16 +88,35 @@ public UnaryCallSettingsstream = + * sequenceServiceClient.attemptStreamingSequenceCallable().call(request); + * for (AttemptStreamingSequenceResponse response : stream) { + * // Do something when a response is received. + * } + * } + * }
string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
+ * @return The name.
+ */
+ @java.lang.Override
+ public java.lang.String getName() {
+ java.lang.Object ref = name_;
+ if (ref instanceof java.lang.String) {
+ return (java.lang.String) ref;
+ } else {
+ com.google.protobuf.ByteString bs =
+ (com.google.protobuf.ByteString) ref;
+ java.lang.String s = bs.toStringUtf8();
+ name_ = s;
+ return s;
+ }
+ }
+ /**
+ * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
+ * @return The bytes for name.
+ */
+ @java.lang.Override
+ public com.google.protobuf.ByteString
+ getNameBytes() {
+ java.lang.Object ref = name_;
+ if (ref instanceof java.lang.String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8(
+ (java.lang.String) ref);
+ name_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+
+ 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 (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) {
+ com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_);
+ }
+ getUnknownFields().writeTo(output);
+ }
+
+ @java.lang.Override
+ public int getSerializedSize() {
+ int size = memoizedSize;
+ if (size != -1) return size;
+
+ size = 0;
+ if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) {
+ size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_);
+ }
+ 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.showcase.v1beta1.AttemptStreamingSequenceRequest)) {
+ return super.equals(obj);
+ }
+ com.google.showcase.v1beta1.AttemptStreamingSequenceRequest other = (com.google.showcase.v1beta1.AttemptStreamingSequenceRequest) obj;
+
+ if (!getName()
+ .equals(other.getName())) 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) + NAME_FIELD_NUMBER;
+ hash = (53 * hash) + getName().hashCode();
+ hash = (29 * hash) + getUnknownFields().hashCode();
+ memoizedHashCode = hash;
+ return hash;
+ }
+
+ public static com.google.showcase.v1beta1.AttemptStreamingSequenceRequest parseFrom(
+ java.nio.ByteBuffer data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+ public static com.google.showcase.v1beta1.AttemptStreamingSequenceRequest parseFrom(
+ java.nio.ByteBuffer data,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+ public static com.google.showcase.v1beta1.AttemptStreamingSequenceRequest parseFrom(
+ com.google.protobuf.ByteString data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+ public static com.google.showcase.v1beta1.AttemptStreamingSequenceRequest 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.showcase.v1beta1.AttemptStreamingSequenceRequest parseFrom(byte[] data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+ public static com.google.showcase.v1beta1.AttemptStreamingSequenceRequest parseFrom(
+ byte[] data,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+ public static com.google.showcase.v1beta1.AttemptStreamingSequenceRequest parseFrom(java.io.InputStream input)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3
+ .parseWithIOException(PARSER, input);
+ }
+ public static com.google.showcase.v1beta1.AttemptStreamingSequenceRequest 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.showcase.v1beta1.AttemptStreamingSequenceRequest parseDelimitedFrom(java.io.InputStream input)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3
+ .parseDelimitedWithIOException(PARSER, input);
+ }
+ public static com.google.showcase.v1beta1.AttemptStreamingSequenceRequest 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.showcase.v1beta1.AttemptStreamingSequenceRequest parseFrom(
+ com.google.protobuf.CodedInputStream input)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3
+ .parseWithIOException(PARSER, input);
+ }
+ public static com.google.showcase.v1beta1.AttemptStreamingSequenceRequest 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.showcase.v1beta1.AttemptStreamingSequenceRequest 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;
+ }
+ /**
+ * Protobuf type {@code google.showcase.v1beta1.AttemptStreamingSequenceRequest}
+ */
+ public static final class Builder extends
+ com.google.protobuf.GeneratedMessageV3.Builderstring name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
+ * @return The name.
+ */
+ public java.lang.String getName() {
+ java.lang.Object ref = name_;
+ if (!(ref instanceof java.lang.String)) {
+ com.google.protobuf.ByteString bs =
+ (com.google.protobuf.ByteString) ref;
+ java.lang.String s = bs.toStringUtf8();
+ name_ = s;
+ return s;
+ } else {
+ return (java.lang.String) ref;
+ }
+ }
+ /**
+ * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
+ * @return The bytes for name.
+ */
+ public com.google.protobuf.ByteString
+ getNameBytes() {
+ java.lang.Object ref = name_;
+ if (ref instanceof String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8(
+ (java.lang.String) ref);
+ name_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+ /**
+ * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
+ * @param value The name to set.
+ * @return This builder for chaining.
+ */
+ public Builder setName(
+ java.lang.String value) {
+ if (value == null) { throw new NullPointerException(); }
+ name_ = value;
+ bitField0_ |= 0x00000001;
+ onChanged();
+ return this;
+ }
+ /**
+ * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
+ * @return This builder for chaining.
+ */
+ public Builder clearName() {
+ name_ = getDefaultInstance().getName();
+ bitField0_ = (bitField0_ & ~0x00000001);
+ onChanged();
+ return this;
+ }
+ /**
+ * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
+ * @param value The bytes for name to set.
+ * @return This builder for chaining.
+ */
+ public Builder setNameBytes(
+ com.google.protobuf.ByteString value) {
+ if (value == null) { throw new NullPointerException(); }
+ checkByteStringIsUtf8(value);
+ name_ = value;
+ bitField0_ |= 0x00000001;
+ 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.showcase.v1beta1.AttemptStreamingSequenceRequest)
+ }
+
+ // @@protoc_insertion_point(class_scope:google.showcase.v1beta1.AttemptStreamingSequenceRequest)
+ private static final com.google.showcase.v1beta1.AttemptStreamingSequenceRequest DEFAULT_INSTANCE;
+ static {
+ DEFAULT_INSTANCE = new com.google.showcase.v1beta1.AttemptStreamingSequenceRequest();
+ }
+
+ public static com.google.showcase.v1beta1.AttemptStreamingSequenceRequest getDefaultInstance() {
+ return DEFAULT_INSTANCE;
+ }
+
+ private static final com.google.protobuf.Parserstring name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
+ * @return The name.
+ */
+ java.lang.String getName();
+ /**
+ * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
+ * @return The bytes for name.
+ */
+ com.google.protobuf.ByteString
+ getNameBytes();
+}
diff --git a/showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/AttemptStreamingSequenceResponse.java b/showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/AttemptStreamingSequenceResponse.java
new file mode 100644
index 0000000000..d51a763763
--- /dev/null
+++ b/showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/AttemptStreamingSequenceResponse.java
@@ -0,0 +1,580 @@
+// Generated by the protocol buffer compiler. DO NOT EDIT!
+// source: schema/google/showcase/v1beta1/sequence.proto
+
+package com.google.showcase.v1beta1;
+
+/**
+ * + * The response message for the Echo methods. + *+ * + * Protobuf type {@code google.showcase.v1beta1.AttemptStreamingSequenceResponse} + */ +public final class AttemptStreamingSequenceResponse extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:google.showcase.v1beta1.AttemptStreamingSequenceResponse) + AttemptStreamingSequenceResponseOrBuilder { +private static final long serialVersionUID = 0L; + // Use AttemptStreamingSequenceResponse.newBuilder() to construct. + private AttemptStreamingSequenceResponse(com.google.protobuf.GeneratedMessageV3.Builder> builder) { + super(builder); + } + private AttemptStreamingSequenceResponse() { + content_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { + return new AttemptStreamingSequenceResponse(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.showcase.v1beta1.SequenceOuterClass.internal_static_google_showcase_v1beta1_AttemptStreamingSequenceResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.showcase.v1beta1.SequenceOuterClass.internal_static_google_showcase_v1beta1_AttemptStreamingSequenceResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.showcase.v1beta1.AttemptStreamingSequenceResponse.class, com.google.showcase.v1beta1.AttemptStreamingSequenceResponse.Builder.class); + } + + public static final int CONTENT_FIELD_NUMBER = 1; + @SuppressWarnings("serial") + private volatile java.lang.Object content_ = ""; + /** + *
+ * The content specified in the request. + *+ * + *
string content = 1;
+ * @return The content.
+ */
+ @java.lang.Override
+ public java.lang.String getContent() {
+ java.lang.Object ref = content_;
+ if (ref instanceof java.lang.String) {
+ return (java.lang.String) ref;
+ } else {
+ com.google.protobuf.ByteString bs =
+ (com.google.protobuf.ByteString) ref;
+ java.lang.String s = bs.toStringUtf8();
+ content_ = s;
+ return s;
+ }
+ }
+ /**
+ * + * The content specified in the request. + *+ * + *
string content = 1;
+ * @return The bytes for content.
+ */
+ @java.lang.Override
+ public com.google.protobuf.ByteString
+ getContentBytes() {
+ java.lang.Object ref = content_;
+ if (ref instanceof java.lang.String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8(
+ (java.lang.String) ref);
+ content_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+
+ 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 (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(content_)) {
+ com.google.protobuf.GeneratedMessageV3.writeString(output, 1, content_);
+ }
+ getUnknownFields().writeTo(output);
+ }
+
+ @java.lang.Override
+ public int getSerializedSize() {
+ int size = memoizedSize;
+ if (size != -1) return size;
+
+ size = 0;
+ if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(content_)) {
+ size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, content_);
+ }
+ 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.showcase.v1beta1.AttemptStreamingSequenceResponse)) {
+ return super.equals(obj);
+ }
+ com.google.showcase.v1beta1.AttemptStreamingSequenceResponse other = (com.google.showcase.v1beta1.AttemptStreamingSequenceResponse) obj;
+
+ if (!getContent()
+ .equals(other.getContent())) 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) + CONTENT_FIELD_NUMBER;
+ hash = (53 * hash) + getContent().hashCode();
+ hash = (29 * hash) + getUnknownFields().hashCode();
+ memoizedHashCode = hash;
+ return hash;
+ }
+
+ public static com.google.showcase.v1beta1.AttemptStreamingSequenceResponse parseFrom(
+ java.nio.ByteBuffer data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+ public static com.google.showcase.v1beta1.AttemptStreamingSequenceResponse parseFrom(
+ java.nio.ByteBuffer data,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+ public static com.google.showcase.v1beta1.AttemptStreamingSequenceResponse parseFrom(
+ com.google.protobuf.ByteString data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+ public static com.google.showcase.v1beta1.AttemptStreamingSequenceResponse 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.showcase.v1beta1.AttemptStreamingSequenceResponse parseFrom(byte[] data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+ public static com.google.showcase.v1beta1.AttemptStreamingSequenceResponse parseFrom(
+ byte[] data,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+ public static com.google.showcase.v1beta1.AttemptStreamingSequenceResponse parseFrom(java.io.InputStream input)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3
+ .parseWithIOException(PARSER, input);
+ }
+ public static com.google.showcase.v1beta1.AttemptStreamingSequenceResponse 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.showcase.v1beta1.AttemptStreamingSequenceResponse parseDelimitedFrom(java.io.InputStream input)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3
+ .parseDelimitedWithIOException(PARSER, input);
+ }
+ public static com.google.showcase.v1beta1.AttemptStreamingSequenceResponse 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.showcase.v1beta1.AttemptStreamingSequenceResponse parseFrom(
+ com.google.protobuf.CodedInputStream input)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3
+ .parseWithIOException(PARSER, input);
+ }
+ public static com.google.showcase.v1beta1.AttemptStreamingSequenceResponse 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.showcase.v1beta1.AttemptStreamingSequenceResponse 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;
+ }
+ /**
+ * + * The response message for the Echo methods. + *+ * + * Protobuf type {@code google.showcase.v1beta1.AttemptStreamingSequenceResponse} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder
+ * The content specified in the request. + *+ * + *
string content = 1;
+ * @return The content.
+ */
+ public java.lang.String getContent() {
+ java.lang.Object ref = content_;
+ if (!(ref instanceof java.lang.String)) {
+ com.google.protobuf.ByteString bs =
+ (com.google.protobuf.ByteString) ref;
+ java.lang.String s = bs.toStringUtf8();
+ content_ = s;
+ return s;
+ } else {
+ return (java.lang.String) ref;
+ }
+ }
+ /**
+ * + * The content specified in the request. + *+ * + *
string content = 1;
+ * @return The bytes for content.
+ */
+ public com.google.protobuf.ByteString
+ getContentBytes() {
+ java.lang.Object ref = content_;
+ if (ref instanceof String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8(
+ (java.lang.String) ref);
+ content_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+ /**
+ * + * The content specified in the request. + *+ * + *
string content = 1;
+ * @param value The content to set.
+ * @return This builder for chaining.
+ */
+ public Builder setContent(
+ java.lang.String value) {
+ if (value == null) { throw new NullPointerException(); }
+ content_ = value;
+ bitField0_ |= 0x00000001;
+ onChanged();
+ return this;
+ }
+ /**
+ * + * The content specified in the request. + *+ * + *
string content = 1;
+ * @return This builder for chaining.
+ */
+ public Builder clearContent() {
+ content_ = getDefaultInstance().getContent();
+ bitField0_ = (bitField0_ & ~0x00000001);
+ onChanged();
+ return this;
+ }
+ /**
+ * + * The content specified in the request. + *+ * + *
string content = 1;
+ * @param value The bytes for content to set.
+ * @return This builder for chaining.
+ */
+ public Builder setContentBytes(
+ com.google.protobuf.ByteString value) {
+ if (value == null) { throw new NullPointerException(); }
+ checkByteStringIsUtf8(value);
+ content_ = value;
+ bitField0_ |= 0x00000001;
+ 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.showcase.v1beta1.AttemptStreamingSequenceResponse)
+ }
+
+ // @@protoc_insertion_point(class_scope:google.showcase.v1beta1.AttemptStreamingSequenceResponse)
+ private static final com.google.showcase.v1beta1.AttemptStreamingSequenceResponse DEFAULT_INSTANCE;
+ static {
+ DEFAULT_INSTANCE = new com.google.showcase.v1beta1.AttemptStreamingSequenceResponse();
+ }
+
+ public static com.google.showcase.v1beta1.AttemptStreamingSequenceResponse getDefaultInstance() {
+ return DEFAULT_INSTANCE;
+ }
+
+ private static final com.google.protobuf.Parser+ * The content specified in the request. + *+ * + *
string content = 1;
+ * @return The content.
+ */
+ java.lang.String getContent();
+ /**
+ * + * The content specified in the request. + *+ * + *
string content = 1;
+ * @return The bytes for content.
+ */
+ com.google.protobuf.ByteString
+ getContentBytes();
+}
diff --git a/showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/CreateStreamingSequenceRequest.java b/showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/CreateStreamingSequenceRequest.java
new file mode 100644
index 0000000000..06d85837dc
--- /dev/null
+++ b/showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/CreateStreamingSequenceRequest.java
@@ -0,0 +1,589 @@
+// Generated by the protocol buffer compiler. DO NOT EDIT!
+// source: schema/google/showcase/v1beta1/sequence.proto
+
+package com.google.showcase.v1beta1;
+
+/**
+ * Protobuf type {@code google.showcase.v1beta1.CreateStreamingSequenceRequest}
+ */
+public final class CreateStreamingSequenceRequest extends
+ com.google.protobuf.GeneratedMessageV3 implements
+ // @@protoc_insertion_point(message_implements:google.showcase.v1beta1.CreateStreamingSequenceRequest)
+ CreateStreamingSequenceRequestOrBuilder {
+private static final long serialVersionUID = 0L;
+ // Use CreateStreamingSequenceRequest.newBuilder() to construct.
+ private CreateStreamingSequenceRequest(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
+ super(builder);
+ }
+ private CreateStreamingSequenceRequest() {
+ }
+
+ @java.lang.Override
+ @SuppressWarnings({"unused"})
+ protected java.lang.Object newInstance(
+ UnusedPrivateParameter unused) {
+ return new CreateStreamingSequenceRequest();
+ }
+
+ @java.lang.Override
+ public final com.google.protobuf.UnknownFieldSet
+ getUnknownFields() {
+ return this.unknownFields;
+ }
+ public static final com.google.protobuf.Descriptors.Descriptor
+ getDescriptor() {
+ return com.google.showcase.v1beta1.SequenceOuterClass.internal_static_google_showcase_v1beta1_CreateStreamingSequenceRequest_descriptor;
+ }
+
+ @java.lang.Override
+ protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+ internalGetFieldAccessorTable() {
+ return com.google.showcase.v1beta1.SequenceOuterClass.internal_static_google_showcase_v1beta1_CreateStreamingSequenceRequest_fieldAccessorTable
+ .ensureFieldAccessorsInitialized(
+ com.google.showcase.v1beta1.CreateStreamingSequenceRequest.class, com.google.showcase.v1beta1.CreateStreamingSequenceRequest.Builder.class);
+ }
+
+ public static final int STREAMING_SEQUENCE_FIELD_NUMBER = 1;
+ private com.google.showcase.v1beta1.StreamingSequence streamingSequence_;
+ /**
+ * .google.showcase.v1beta1.StreamingSequence streaming_sequence = 1;
+ * @return Whether the streamingSequence field is set.
+ */
+ @java.lang.Override
+ public boolean hasStreamingSequence() {
+ return streamingSequence_ != null;
+ }
+ /**
+ * .google.showcase.v1beta1.StreamingSequence streaming_sequence = 1;
+ * @return The streamingSequence.
+ */
+ @java.lang.Override
+ public com.google.showcase.v1beta1.StreamingSequence getStreamingSequence() {
+ return streamingSequence_ == null ? com.google.showcase.v1beta1.StreamingSequence.getDefaultInstance() : streamingSequence_;
+ }
+ /**
+ * .google.showcase.v1beta1.StreamingSequence streaming_sequence = 1;
+ */
+ @java.lang.Override
+ public com.google.showcase.v1beta1.StreamingSequenceOrBuilder getStreamingSequenceOrBuilder() {
+ return streamingSequence_ == null ? com.google.showcase.v1beta1.StreamingSequence.getDefaultInstance() : streamingSequence_;
+ }
+
+ 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 (streamingSequence_ != null) {
+ output.writeMessage(1, getStreamingSequence());
+ }
+ getUnknownFields().writeTo(output);
+ }
+
+ @java.lang.Override
+ public int getSerializedSize() {
+ int size = memoizedSize;
+ if (size != -1) return size;
+
+ size = 0;
+ if (streamingSequence_ != null) {
+ size += com.google.protobuf.CodedOutputStream
+ .computeMessageSize(1, getStreamingSequence());
+ }
+ 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.showcase.v1beta1.CreateStreamingSequenceRequest)) {
+ return super.equals(obj);
+ }
+ com.google.showcase.v1beta1.CreateStreamingSequenceRequest other = (com.google.showcase.v1beta1.CreateStreamingSequenceRequest) obj;
+
+ if (hasStreamingSequence() != other.hasStreamingSequence()) return false;
+ if (hasStreamingSequence()) {
+ if (!getStreamingSequence()
+ .equals(other.getStreamingSequence())) 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();
+ if (hasStreamingSequence()) {
+ hash = (37 * hash) + STREAMING_SEQUENCE_FIELD_NUMBER;
+ hash = (53 * hash) + getStreamingSequence().hashCode();
+ }
+ hash = (29 * hash) + getUnknownFields().hashCode();
+ memoizedHashCode = hash;
+ return hash;
+ }
+
+ public static com.google.showcase.v1beta1.CreateStreamingSequenceRequest parseFrom(
+ java.nio.ByteBuffer data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+ public static com.google.showcase.v1beta1.CreateStreamingSequenceRequest parseFrom(
+ java.nio.ByteBuffer data,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+ public static com.google.showcase.v1beta1.CreateStreamingSequenceRequest parseFrom(
+ com.google.protobuf.ByteString data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+ public static com.google.showcase.v1beta1.CreateStreamingSequenceRequest 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.showcase.v1beta1.CreateStreamingSequenceRequest parseFrom(byte[] data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+ public static com.google.showcase.v1beta1.CreateStreamingSequenceRequest parseFrom(
+ byte[] data,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+ public static com.google.showcase.v1beta1.CreateStreamingSequenceRequest parseFrom(java.io.InputStream input)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3
+ .parseWithIOException(PARSER, input);
+ }
+ public static com.google.showcase.v1beta1.CreateStreamingSequenceRequest 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.showcase.v1beta1.CreateStreamingSequenceRequest parseDelimitedFrom(java.io.InputStream input)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3
+ .parseDelimitedWithIOException(PARSER, input);
+ }
+ public static com.google.showcase.v1beta1.CreateStreamingSequenceRequest 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.showcase.v1beta1.CreateStreamingSequenceRequest parseFrom(
+ com.google.protobuf.CodedInputStream input)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3
+ .parseWithIOException(PARSER, input);
+ }
+ public static com.google.showcase.v1beta1.CreateStreamingSequenceRequest 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.showcase.v1beta1.CreateStreamingSequenceRequest 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;
+ }
+ /**
+ * Protobuf type {@code google.showcase.v1beta1.CreateStreamingSequenceRequest}
+ */
+ public static final class Builder extends
+ com.google.protobuf.GeneratedMessageV3.Builder.google.showcase.v1beta1.StreamingSequence streaming_sequence = 1;
+ * @return Whether the streamingSequence field is set.
+ */
+ public boolean hasStreamingSequence() {
+ return ((bitField0_ & 0x00000001) != 0);
+ }
+ /**
+ * .google.showcase.v1beta1.StreamingSequence streaming_sequence = 1;
+ * @return The streamingSequence.
+ */
+ public com.google.showcase.v1beta1.StreamingSequence getStreamingSequence() {
+ if (streamingSequenceBuilder_ == null) {
+ return streamingSequence_ == null ? com.google.showcase.v1beta1.StreamingSequence.getDefaultInstance() : streamingSequence_;
+ } else {
+ return streamingSequenceBuilder_.getMessage();
+ }
+ }
+ /**
+ * .google.showcase.v1beta1.StreamingSequence streaming_sequence = 1;
+ */
+ public Builder setStreamingSequence(com.google.showcase.v1beta1.StreamingSequence value) {
+ if (streamingSequenceBuilder_ == null) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ streamingSequence_ = value;
+ } else {
+ streamingSequenceBuilder_.setMessage(value);
+ }
+ bitField0_ |= 0x00000001;
+ onChanged();
+ return this;
+ }
+ /**
+ * .google.showcase.v1beta1.StreamingSequence streaming_sequence = 1;
+ */
+ public Builder setStreamingSequence(
+ com.google.showcase.v1beta1.StreamingSequence.Builder builderForValue) {
+ if (streamingSequenceBuilder_ == null) {
+ streamingSequence_ = builderForValue.build();
+ } else {
+ streamingSequenceBuilder_.setMessage(builderForValue.build());
+ }
+ bitField0_ |= 0x00000001;
+ onChanged();
+ return this;
+ }
+ /**
+ * .google.showcase.v1beta1.StreamingSequence streaming_sequence = 1;
+ */
+ public Builder mergeStreamingSequence(com.google.showcase.v1beta1.StreamingSequence value) {
+ if (streamingSequenceBuilder_ == null) {
+ if (((bitField0_ & 0x00000001) != 0) &&
+ streamingSequence_ != null &&
+ streamingSequence_ != com.google.showcase.v1beta1.StreamingSequence.getDefaultInstance()) {
+ getStreamingSequenceBuilder().mergeFrom(value);
+ } else {
+ streamingSequence_ = value;
+ }
+ } else {
+ streamingSequenceBuilder_.mergeFrom(value);
+ }
+ bitField0_ |= 0x00000001;
+ onChanged();
+ return this;
+ }
+ /**
+ * .google.showcase.v1beta1.StreamingSequence streaming_sequence = 1;
+ */
+ public Builder clearStreamingSequence() {
+ bitField0_ = (bitField0_ & ~0x00000001);
+ streamingSequence_ = null;
+ if (streamingSequenceBuilder_ != null) {
+ streamingSequenceBuilder_.dispose();
+ streamingSequenceBuilder_ = null;
+ }
+ onChanged();
+ return this;
+ }
+ /**
+ * .google.showcase.v1beta1.StreamingSequence streaming_sequence = 1;
+ */
+ public com.google.showcase.v1beta1.StreamingSequence.Builder getStreamingSequenceBuilder() {
+ bitField0_ |= 0x00000001;
+ onChanged();
+ return getStreamingSequenceFieldBuilder().getBuilder();
+ }
+ /**
+ * .google.showcase.v1beta1.StreamingSequence streaming_sequence = 1;
+ */
+ public com.google.showcase.v1beta1.StreamingSequenceOrBuilder getStreamingSequenceOrBuilder() {
+ if (streamingSequenceBuilder_ != null) {
+ return streamingSequenceBuilder_.getMessageOrBuilder();
+ } else {
+ return streamingSequence_ == null ?
+ com.google.showcase.v1beta1.StreamingSequence.getDefaultInstance() : streamingSequence_;
+ }
+ }
+ /**
+ * .google.showcase.v1beta1.StreamingSequence streaming_sequence = 1;
+ */
+ private com.google.protobuf.SingleFieldBuilderV3<
+ com.google.showcase.v1beta1.StreamingSequence, com.google.showcase.v1beta1.StreamingSequence.Builder, com.google.showcase.v1beta1.StreamingSequenceOrBuilder>
+ getStreamingSequenceFieldBuilder() {
+ if (streamingSequenceBuilder_ == null) {
+ streamingSequenceBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
+ com.google.showcase.v1beta1.StreamingSequence, com.google.showcase.v1beta1.StreamingSequence.Builder, com.google.showcase.v1beta1.StreamingSequenceOrBuilder>(
+ getStreamingSequence(),
+ getParentForChildren(),
+ isClean());
+ streamingSequence_ = null;
+ }
+ return streamingSequenceBuilder_;
+ }
+ @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.showcase.v1beta1.CreateStreamingSequenceRequest)
+ }
+
+ // @@protoc_insertion_point(class_scope:google.showcase.v1beta1.CreateStreamingSequenceRequest)
+ private static final com.google.showcase.v1beta1.CreateStreamingSequenceRequest DEFAULT_INSTANCE;
+ static {
+ DEFAULT_INSTANCE = new com.google.showcase.v1beta1.CreateStreamingSequenceRequest();
+ }
+
+ public static com.google.showcase.v1beta1.CreateStreamingSequenceRequest getDefaultInstance() {
+ return DEFAULT_INSTANCE;
+ }
+
+ private static final com.google.protobuf.Parser.google.showcase.v1beta1.StreamingSequence streaming_sequence = 1;
+ * @return Whether the streamingSequence field is set.
+ */
+ boolean hasStreamingSequence();
+ /**
+ * .google.showcase.v1beta1.StreamingSequence streaming_sequence = 1;
+ * @return The streamingSequence.
+ */
+ com.google.showcase.v1beta1.StreamingSequence getStreamingSequence();
+ /**
+ * .google.showcase.v1beta1.StreamingSequence streaming_sequence = 1;
+ */
+ com.google.showcase.v1beta1.StreamingSequenceOrBuilder getStreamingSequenceOrBuilder();
+}
diff --git a/showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/EchoOuterClass.java b/showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/EchoOuterClass.java
index 7f860781d4..a605e0df52 100644
--- a/showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/EchoOuterClass.java
+++ b/showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/EchoOuterClass.java
@@ -107,79 +107,81 @@ public static void registerAllExtensions(
"ader\030\004 \001(\t\022\024\n\014other_header\030\005 \001(\tB\n\n\010resp" +
"onse\"T\n\014EchoResponse\022\017\n\007content\030\001 \001(\t\0223\n" +
"\010severity\030\002 \001(\0162!.google.showcase.v1beta" +
- "1.Severity\"C\n\rExpandRequest\022\017\n\007content\030\001" +
- " \001(\t\022!\n\005error\030\002 \001(\0132\022.google.rpc.Status\"" +
- "Q\n\022PagedExpandRequest\022\024\n\007content\030\001 \001(\tB\003" +
- "\340A\002\022\021\n\tpage_size\030\002 \001(\005\022\022\n\npage_token\030\003 \001" +
- "(\t\"Y\n\030PagedExpandLegacyRequest\022\024\n\007conten" +
- "t\030\001 \001(\tB\003\340A\002\022\023\n\013max_results\030\002 \001(\005\022\022\n\npag" +
- "e_token\030\003 \001(\t\"h\n\023PagedExpandResponse\0228\n\t" +
- "responses\030\001 \003(\0132%.google.showcase.v1beta" +
- "1.EchoResponse\022\027\n\017next_page_token\030\002 \001(\t\"" +
- "(\n\027PagedExpandResponseList\022\r\n\005words\030\001 \003(" +
- "\t\"\203\002\n\037PagedExpandLegacyMappedResponse\022`\n" +
- "\014alphabetized\030\001 \003(\0132J.google.showcase.v1" +
- "beta1.PagedExpandLegacyMappedResponse.Al" +
- "phabetizedEntry\022\027\n\017next_page_token\030\002 \001(\t" +
- "\032e\n\021AlphabetizedEntry\022\013\n\003key\030\001 \001(\t\022?\n\005va" +
- "lue\030\002 \001(\01320.google.showcase.v1beta1.Page" +
- "dExpandResponseList:\0028\001\"\331\001\n\013WaitRequest\022" +
- ".\n\010end_time\030\001 \001(\0132\032.google.protobuf.Time" +
- "stampH\000\022(\n\003ttl\030\004 \001(\0132\031.google.protobuf.D" +
- "urationH\000\022#\n\005error\030\002 \001(\0132\022.google.rpc.St" +
- "atusH\001\0228\n\007success\030\003 \001(\0132%.google.showcas" +
- "e.v1beta1.WaitResponseH\001B\005\n\003endB\n\n\010respo" +
- "nse\"\037\n\014WaitResponse\022\017\n\007content\030\001 \001(\t\"<\n\014" +
- "WaitMetadata\022,\n\010end_time\030\001 \001(\0132\032.google." +
- "protobuf.Timestamp\"\255\001\n\014BlockRequest\0221\n\016r" +
- "esponse_delay\030\001 \001(\0132\031.google.protobuf.Du" +
- "ration\022#\n\005error\030\002 \001(\0132\022.google.rpc.Statu" +
- "sH\000\0229\n\007success\030\003 \001(\0132&.google.showcase.v" +
- "1beta1.BlockResponseH\000B\n\n\010response\" \n\rBl" +
- "ockResponse\022\017\n\007content\030\001 \001(\t*D\n\010Severity" +
- "\022\017\n\013UNNECESSARY\020\000\022\r\n\tNECESSARY\020\001\022\n\n\006URGE" +
- "NT\020\002\022\014\n\010CRITICAL\020\0032\377\013\n\004Echo\022\224\003\n\004Echo\022$.g" +
- "oogle.showcase.v1beta1.EchoRequest\032%.goo" +
- "gle.showcase.v1beta1.EchoResponse\"\276\002\202\323\344\223" +
- "\002\027\"\022/v1beta1/echo:echo:\001*\212\323\344\223\002\232\002\022\010\n\006head" +
- "er\022\031\n\006header\022\017{routing_id=**}\022+\n\006header\022" +
- "!{table_name=regions/*/zones/*/**}\022\"\n\006he" +
- "ader\022\030{super_id=projects/*}/**\0220\n\006header" +
- "\022&{table_name=projects/*/instances/*/**}" +
- "\0221\n\006header\022\'projects/*/{instance_id=inst" +
- "ances/*}/**\022\030\n\014other_header\022\010{baz=**}\022#\n" +
- "\014other_header\022\023{qux=projects/*}/**\022\212\001\n\006E" +
- "xpand\022&.google.showcase.v1beta1.ExpandRe" +
- "quest\032%.google.showcase.v1beta1.EchoResp" +
- "onse\"/\202\323\344\223\002\031\"\024/v1beta1/echo:expand:\001*\332A\r" +
- "content,error0\001\022z\n\007Collect\022$.google.show" +
- "case.v1beta1.EchoRequest\032%.google.showca" +
- "se.v1beta1.EchoResponse\" \202\323\344\223\002\032\"\025/v1beta" +
- "1/echo:collect:\001*(\001\022W\n\004Chat\022$.google.sho" +
- "wcase.v1beta1.EchoRequest\032%.google.showc" +
- "ase.v1beta1.EchoResponse(\0010\001\022\216\001\n\013PagedEx" +
- "pand\022+.google.showcase.v1beta1.PagedExpa" +
- "ndRequest\032,.google.showcase.v1beta1.Page" +
- "dExpandResponse\"$\202\323\344\223\002\036\"\031/v1beta1/echo:p" +
- "agedExpand:\001*\022\240\001\n\021PagedExpandLegacy\0221.go" +
- "ogle.showcase.v1beta1.PagedExpandLegacyR" +
- "equest\032,.google.showcase.v1beta1.PagedEx" +
- "pandResponse\"*\202\323\344\223\002$\"\037/v1beta1/echo:page" +
- "dExpandLegacy:\001*\022\262\001\n\027PagedExpandLegacyMa" +
- "pped\022+.google.showcase.v1beta1.PagedExpa" +
- "ndRequest\0328.google.showcase.v1beta1.Page" +
- "dExpandLegacyMappedResponse\"0\202\323\344\223\002*\"%/v1" +
- "beta1/echo:pagedExpandLegacyMapped:\001*\022\211\001" +
- "\n\004Wait\022$.google.showcase.v1beta1.WaitReq" +
- "uest\032\035.google.longrunning.Operation\"<\202\323\344" +
- "\223\002\027\"\022/v1beta1/echo:wait:\001*\312A\034\n\014WaitRespo" +
- "nse\022\014WaitMetadata\022v\n\005Block\022%.google.show" +
- "case.v1beta1.BlockRequest\032&.google.showc" +
- "ase.v1beta1.BlockResponse\"\036\202\323\344\223\002\030\"\023/v1be" +
- "ta1/echo:block:\001*\032\021\312A\016localhost:7469Bq\n\033" +
- "com.google.showcase.v1beta1P\001Z4github.co" +
- "m/googleapis/gapic-showcase/server/genpr" +
- "oto\352\002\031Google::Showcase::V1beta1b\006proto3"
+ "1.Severity\"x\n\rExpandRequest\022\017\n\007content\030\001" +
+ " \001(\t\022!\n\005error\030\002 \001(\0132\022.google.rpc.Status\022" +
+ "3\n\020stream_wait_time\030\003 \001(\0132\031.google.proto" +
+ "buf.Duration\"Q\n\022PagedExpandRequest\022\024\n\007co" +
+ "ntent\030\001 \001(\tB\003\340A\002\022\021\n\tpage_size\030\002 \001(\005\022\022\n\np" +
+ "age_token\030\003 \001(\t\"Y\n\030PagedExpandLegacyRequ" +
+ "est\022\024\n\007content\030\001 \001(\tB\003\340A\002\022\023\n\013max_results" +
+ "\030\002 \001(\005\022\022\n\npage_token\030\003 \001(\t\"h\n\023PagedExpan" +
+ "dResponse\0228\n\tresponses\030\001 \003(\0132%.google.sh" +
+ "owcase.v1beta1.EchoResponse\022\027\n\017next_page" +
+ "_token\030\002 \001(\t\"(\n\027PagedExpandResponseList\022" +
+ "\r\n\005words\030\001 \003(\t\"\203\002\n\037PagedExpandLegacyMapp" +
+ "edResponse\022`\n\014alphabetized\030\001 \003(\0132J.googl" +
+ "e.showcase.v1beta1.PagedExpandLegacyMapp" +
+ "edResponse.AlphabetizedEntry\022\027\n\017next_pag" +
+ "e_token\030\002 \001(\t\032e\n\021AlphabetizedEntry\022\013\n\003ke" +
+ "y\030\001 \001(\t\022?\n\005value\030\002 \001(\01320.google.showcase" +
+ ".v1beta1.PagedExpandResponseList:\0028\001\"\331\001\n" +
+ "\013WaitRequest\022.\n\010end_time\030\001 \001(\0132\032.google." +
+ "protobuf.TimestampH\000\022(\n\003ttl\030\004 \001(\0132\031.goog" +
+ "le.protobuf.DurationH\000\022#\n\005error\030\002 \001(\0132\022." +
+ "google.rpc.StatusH\001\0228\n\007success\030\003 \001(\0132%.g" +
+ "oogle.showcase.v1beta1.WaitResponseH\001B\005\n" +
+ "\003endB\n\n\010response\"\037\n\014WaitResponse\022\017\n\007cont" +
+ "ent\030\001 \001(\t\"<\n\014WaitMetadata\022,\n\010end_time\030\001 " +
+ "\001(\0132\032.google.protobuf.Timestamp\"\255\001\n\014Bloc" +
+ "kRequest\0221\n\016response_delay\030\001 \001(\0132\031.googl" +
+ "e.protobuf.Duration\022#\n\005error\030\002 \001(\0132\022.goo" +
+ "gle.rpc.StatusH\000\0229\n\007success\030\003 \001(\0132&.goog" +
+ "le.showcase.v1beta1.BlockResponseH\000B\n\n\010r" +
+ "esponse\" \n\rBlockResponse\022\017\n\007content\030\001 \001(" +
+ "\t*D\n\010Severity\022\017\n\013UNNECESSARY\020\000\022\r\n\tNECESS" +
+ "ARY\020\001\022\n\n\006URGENT\020\002\022\014\n\010CRITICAL\020\0032\377\013\n\004Echo" +
+ "\022\224\003\n\004Echo\022$.google.showcase.v1beta1.Echo" +
+ "Request\032%.google.showcase.v1beta1.EchoRe" +
+ "sponse\"\276\002\202\323\344\223\002\027\"\022/v1beta1/echo:echo:\001*\212\323" +
+ "\344\223\002\232\002\022\010\n\006header\022\031\n\006header\022\017{routing_id=*" +
+ "*}\022+\n\006header\022!{table_name=regions/*/zone" +
+ "s/*/**}\022\"\n\006header\022\030{super_id=projects/*}" +
+ "/**\0220\n\006header\022&{table_name=projects/*/in" +
+ "stances/*/**}\0221\n\006header\022\'projects/*/{ins" +
+ "tance_id=instances/*}/**\022\030\n\014other_header" +
+ "\022\010{baz=**}\022#\n\014other_header\022\023{qux=project" +
+ "s/*}/**\022\212\001\n\006Expand\022&.google.showcase.v1b" +
+ "eta1.ExpandRequest\032%.google.showcase.v1b" +
+ "eta1.EchoResponse\"/\202\323\344\223\002\031\"\024/v1beta1/echo" +
+ ":expand:\001*\332A\rcontent,error0\001\022z\n\007Collect\022" +
+ "$.google.showcase.v1beta1.EchoRequest\032%." +
+ "google.showcase.v1beta1.EchoResponse\" \202\323" +
+ "\344\223\002\032\"\025/v1beta1/echo:collect:\001*(\001\022W\n\004Chat" +
+ "\022$.google.showcase.v1beta1.EchoRequest\032%" +
+ ".google.showcase.v1beta1.EchoResponse(\0010" +
+ "\001\022\216\001\n\013PagedExpand\022+.google.showcase.v1be" +
+ "ta1.PagedExpandRequest\032,.google.showcase" +
+ ".v1beta1.PagedExpandResponse\"$\202\323\344\223\002\036\"\031/v" +
+ "1beta1/echo:pagedExpand:\001*\022\240\001\n\021PagedExpa" +
+ "ndLegacy\0221.google.showcase.v1beta1.Paged" +
+ "ExpandLegacyRequest\032,.google.showcase.v1" +
+ "beta1.PagedExpandResponse\"*\202\323\344\223\002$\"\037/v1be" +
+ "ta1/echo:pagedExpandLegacy:\001*\022\262\001\n\027PagedE" +
+ "xpandLegacyMapped\022+.google.showcase.v1be" +
+ "ta1.PagedExpandRequest\0328.google.showcase" +
+ ".v1beta1.PagedExpandLegacyMappedResponse" +
+ "\"0\202\323\344\223\002*\"%/v1beta1/echo:pagedExpandLegac" +
+ "yMapped:\001*\022\211\001\n\004Wait\022$.google.showcase.v1" +
+ "beta1.WaitRequest\032\035.google.longrunning.O" +
+ "peration\"<\202\323\344\223\002\027\"\022/v1beta1/echo:wait:\001*\312" +
+ "A\034\n\014WaitResponse\022\014WaitMetadata\022v\n\005Block\022" +
+ "%.google.showcase.v1beta1.BlockRequest\032&" +
+ ".google.showcase.v1beta1.BlockResponse\"\036" +
+ "\202\323\344\223\002\030\"\023/v1beta1/echo:block:\001*\032\021\312A\016local" +
+ "host:7469Bq\n\033com.google.showcase.v1beta1" +
+ "P\001Z4github.com/googleapis/gapic-showcase" +
+ "/server/genproto\352\002\031Google::Showcase::V1b" +
+ "eta1b\006proto3"
};
descriptor = com.google.protobuf.Descriptors.FileDescriptor
.internalBuildGeneratedFileFrom(descriptorData,
@@ -210,7 +212,7 @@ public static void registerAllExtensions(
internal_static_google_showcase_v1beta1_ExpandRequest_fieldAccessorTable = new
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
internal_static_google_showcase_v1beta1_ExpandRequest_descriptor,
- new java.lang.String[] { "Content", "Error", });
+ new java.lang.String[] { "Content", "Error", "StreamWaitTime", });
internal_static_google_showcase_v1beta1_PagedExpandRequest_descriptor =
getDescriptor().getMessageTypes().get(3);
internal_static_google_showcase_v1beta1_PagedExpandRequest_fieldAccessorTable = new
diff --git a/showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/ExpandRequest.java b/showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/ExpandRequest.java
index 35b7500bbb..3348bc259d 100644
--- a/showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/ExpandRequest.java
+++ b/showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/ExpandRequest.java
@@ -133,6 +133,44 @@ public com.google.rpc.StatusOrBuilder getErrorOrBuilder() {
return error_ == null ? com.google.rpc.Status.getDefaultInstance() : error_;
}
+ public static final int STREAM_WAIT_TIME_FIELD_NUMBER = 3;
+ private com.google.protobuf.Duration streamWaitTime_;
+ /**
+ * + *The wait time between each server streaming messages + *+ * + *
.google.protobuf.Duration stream_wait_time = 3;
+ * @return Whether the streamWaitTime field is set.
+ */
+ @java.lang.Override
+ public boolean hasStreamWaitTime() {
+ return streamWaitTime_ != null;
+ }
+ /**
+ * + *The wait time between each server streaming messages + *+ * + *
.google.protobuf.Duration stream_wait_time = 3;
+ * @return The streamWaitTime.
+ */
+ @java.lang.Override
+ public com.google.protobuf.Duration getStreamWaitTime() {
+ return streamWaitTime_ == null ? com.google.protobuf.Duration.getDefaultInstance() : streamWaitTime_;
+ }
+ /**
+ * + *The wait time between each server streaming messages + *+ * + *
.google.protobuf.Duration stream_wait_time = 3;
+ */
+ @java.lang.Override
+ public com.google.protobuf.DurationOrBuilder getStreamWaitTimeOrBuilder() {
+ return streamWaitTime_ == null ? com.google.protobuf.Duration.getDefaultInstance() : streamWaitTime_;
+ }
+
private byte memoizedIsInitialized = -1;
@java.lang.Override
public final boolean isInitialized() {
@@ -153,6 +191,9 @@ public void writeTo(com.google.protobuf.CodedOutputStream output)
if (error_ != null) {
output.writeMessage(2, getError());
}
+ if (streamWaitTime_ != null) {
+ output.writeMessage(3, getStreamWaitTime());
+ }
getUnknownFields().writeTo(output);
}
@@ -169,6 +210,10 @@ public int getSerializedSize() {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(2, getError());
}
+ if (streamWaitTime_ != null) {
+ size += com.google.protobuf.CodedOutputStream
+ .computeMessageSize(3, getStreamWaitTime());
+ }
size += getUnknownFields().getSerializedSize();
memoizedSize = size;
return size;
@@ -191,6 +236,11 @@ public boolean equals(final java.lang.Object obj) {
if (!getError()
.equals(other.getError())) return false;
}
+ if (hasStreamWaitTime() != other.hasStreamWaitTime()) return false;
+ if (hasStreamWaitTime()) {
+ if (!getStreamWaitTime()
+ .equals(other.getStreamWaitTime())) return false;
+ }
if (!getUnknownFields().equals(other.getUnknownFields())) return false;
return true;
}
@@ -208,6 +258,10 @@ public int hashCode() {
hash = (37 * hash) + ERROR_FIELD_NUMBER;
hash = (53 * hash) + getError().hashCode();
}
+ if (hasStreamWaitTime()) {
+ hash = (37 * hash) + STREAM_WAIT_TIME_FIELD_NUMBER;
+ hash = (53 * hash) + getStreamWaitTime().hashCode();
+ }
hash = (29 * hash) + getUnknownFields().hashCode();
memoizedHashCode = hash;
return hash;
@@ -347,6 +401,11 @@ public Builder clear() {
errorBuilder_.dispose();
errorBuilder_ = null;
}
+ streamWaitTime_ = null;
+ if (streamWaitTimeBuilder_ != null) {
+ streamWaitTimeBuilder_.dispose();
+ streamWaitTimeBuilder_ = null;
+ }
return this;
}
@@ -388,6 +447,11 @@ private void buildPartial0(com.google.showcase.v1beta1.ExpandRequest result) {
? error_
: errorBuilder_.build();
}
+ if (((from_bitField0_ & 0x00000004) != 0)) {
+ result.streamWaitTime_ = streamWaitTimeBuilder_ == null
+ ? streamWaitTime_
+ : streamWaitTimeBuilder_.build();
+ }
}
@java.lang.Override
@@ -442,6 +506,9 @@ public Builder mergeFrom(com.google.showcase.v1beta1.ExpandRequest other) {
if (other.hasError()) {
mergeError(other.getError());
}
+ if (other.hasStreamWaitTime()) {
+ mergeStreamWaitTime(other.getStreamWaitTime());
+ }
this.mergeUnknownFields(other.getUnknownFields());
onChanged();
return this;
@@ -480,6 +547,13 @@ public Builder mergeFrom(
bitField0_ |= 0x00000002;
break;
} // case 18
+ case 26: {
+ input.readMessage(
+ getStreamWaitTimeFieldBuilder().getBuilder(),
+ extensionRegistry);
+ bitField0_ |= 0x00000004;
+ break;
+ } // case 26
default: {
if (!super.parseUnknownField(input, extensionRegistry, tag)) {
done = true; // was an endgroup tag
@@ -743,6 +817,161 @@ public com.google.rpc.StatusOrBuilder getErrorOrBuilder() {
}
return errorBuilder_;
}
+
+ private com.google.protobuf.Duration streamWaitTime_;
+ private com.google.protobuf.SingleFieldBuilderV3<
+ com.google.protobuf.Duration, com.google.protobuf.Duration.Builder, com.google.protobuf.DurationOrBuilder> streamWaitTimeBuilder_;
+ /**
+ * + *The wait time between each server streaming messages + *+ * + *
.google.protobuf.Duration stream_wait_time = 3;
+ * @return Whether the streamWaitTime field is set.
+ */
+ public boolean hasStreamWaitTime() {
+ return ((bitField0_ & 0x00000004) != 0);
+ }
+ /**
+ * + *The wait time between each server streaming messages + *+ * + *
.google.protobuf.Duration stream_wait_time = 3;
+ * @return The streamWaitTime.
+ */
+ public com.google.protobuf.Duration getStreamWaitTime() {
+ if (streamWaitTimeBuilder_ == null) {
+ return streamWaitTime_ == null ? com.google.protobuf.Duration.getDefaultInstance() : streamWaitTime_;
+ } else {
+ return streamWaitTimeBuilder_.getMessage();
+ }
+ }
+ /**
+ * + *The wait time between each server streaming messages + *+ * + *
.google.protobuf.Duration stream_wait_time = 3;
+ */
+ public Builder setStreamWaitTime(com.google.protobuf.Duration value) {
+ if (streamWaitTimeBuilder_ == null) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ streamWaitTime_ = value;
+ } else {
+ streamWaitTimeBuilder_.setMessage(value);
+ }
+ bitField0_ |= 0x00000004;
+ onChanged();
+ return this;
+ }
+ /**
+ * + *The wait time between each server streaming messages + *+ * + *
.google.protobuf.Duration stream_wait_time = 3;
+ */
+ public Builder setStreamWaitTime(
+ com.google.protobuf.Duration.Builder builderForValue) {
+ if (streamWaitTimeBuilder_ == null) {
+ streamWaitTime_ = builderForValue.build();
+ } else {
+ streamWaitTimeBuilder_.setMessage(builderForValue.build());
+ }
+ bitField0_ |= 0x00000004;
+ onChanged();
+ return this;
+ }
+ /**
+ * + *The wait time between each server streaming messages + *+ * + *
.google.protobuf.Duration stream_wait_time = 3;
+ */
+ public Builder mergeStreamWaitTime(com.google.protobuf.Duration value) {
+ if (streamWaitTimeBuilder_ == null) {
+ if (((bitField0_ & 0x00000004) != 0) &&
+ streamWaitTime_ != null &&
+ streamWaitTime_ != com.google.protobuf.Duration.getDefaultInstance()) {
+ getStreamWaitTimeBuilder().mergeFrom(value);
+ } else {
+ streamWaitTime_ = value;
+ }
+ } else {
+ streamWaitTimeBuilder_.mergeFrom(value);
+ }
+ bitField0_ |= 0x00000004;
+ onChanged();
+ return this;
+ }
+ /**
+ * + *The wait time between each server streaming messages + *+ * + *
.google.protobuf.Duration stream_wait_time = 3;
+ */
+ public Builder clearStreamWaitTime() {
+ bitField0_ = (bitField0_ & ~0x00000004);
+ streamWaitTime_ = null;
+ if (streamWaitTimeBuilder_ != null) {
+ streamWaitTimeBuilder_.dispose();
+ streamWaitTimeBuilder_ = null;
+ }
+ onChanged();
+ return this;
+ }
+ /**
+ * + *The wait time between each server streaming messages + *+ * + *
.google.protobuf.Duration stream_wait_time = 3;
+ */
+ public com.google.protobuf.Duration.Builder getStreamWaitTimeBuilder() {
+ bitField0_ |= 0x00000004;
+ onChanged();
+ return getStreamWaitTimeFieldBuilder().getBuilder();
+ }
+ /**
+ * + *The wait time between each server streaming messages + *+ * + *
.google.protobuf.Duration stream_wait_time = 3;
+ */
+ public com.google.protobuf.DurationOrBuilder getStreamWaitTimeOrBuilder() {
+ if (streamWaitTimeBuilder_ != null) {
+ return streamWaitTimeBuilder_.getMessageOrBuilder();
+ } else {
+ return streamWaitTime_ == null ?
+ com.google.protobuf.Duration.getDefaultInstance() : streamWaitTime_;
+ }
+ }
+ /**
+ * + *The wait time between each server streaming messages + *+ * + *
.google.protobuf.Duration stream_wait_time = 3;
+ */
+ private com.google.protobuf.SingleFieldBuilderV3<
+ com.google.protobuf.Duration, com.google.protobuf.Duration.Builder, com.google.protobuf.DurationOrBuilder>
+ getStreamWaitTimeFieldBuilder() {
+ if (streamWaitTimeBuilder_ == null) {
+ streamWaitTimeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
+ com.google.protobuf.Duration, com.google.protobuf.Duration.Builder, com.google.protobuf.DurationOrBuilder>(
+ getStreamWaitTime(),
+ getParentForChildren(),
+ isClean());
+ streamWaitTime_ = null;
+ }
+ return streamWaitTimeBuilder_;
+ }
@java.lang.Override
public final Builder setUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
diff --git a/showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/ExpandRequestOrBuilder.java b/showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/ExpandRequestOrBuilder.java
index 3286ec98c7..51eef45ac2 100644
--- a/showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/ExpandRequestOrBuilder.java
+++ b/showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/ExpandRequestOrBuilder.java
@@ -53,4 +53,31 @@ public interface ExpandRequestOrBuilder extends
* .google.rpc.Status error = 2;
*/
com.google.rpc.StatusOrBuilder getErrorOrBuilder();
+
+ /**
+ * + *The wait time between each server streaming messages + *+ * + *
.google.protobuf.Duration stream_wait_time = 3;
+ * @return Whether the streamWaitTime field is set.
+ */
+ boolean hasStreamWaitTime();
+ /**
+ * + *The wait time between each server streaming messages + *+ * + *
.google.protobuf.Duration stream_wait_time = 3;
+ * @return The streamWaitTime.
+ */
+ com.google.protobuf.Duration getStreamWaitTime();
+ /**
+ * + *The wait time between each server streaming messages + *+ * + *
.google.protobuf.Duration stream_wait_time = 3;
+ */
+ com.google.protobuf.DurationOrBuilder getStreamWaitTimeOrBuilder();
}
diff --git a/showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/GetStreamingSequenceReportRequest.java b/showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/GetStreamingSequenceReportRequest.java
new file mode 100644
index 0000000000..96b0d6df99
--- /dev/null
+++ b/showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/GetStreamingSequenceReportRequest.java
@@ -0,0 +1,544 @@
+// Generated by the protocol buffer compiler. DO NOT EDIT!
+// source: schema/google/showcase/v1beta1/sequence.proto
+
+package com.google.showcase.v1beta1;
+
+/**
+ * Protobuf type {@code google.showcase.v1beta1.GetStreamingSequenceReportRequest}
+ */
+public final class GetStreamingSequenceReportRequest extends
+ com.google.protobuf.GeneratedMessageV3 implements
+ // @@protoc_insertion_point(message_implements:google.showcase.v1beta1.GetStreamingSequenceReportRequest)
+ GetStreamingSequenceReportRequestOrBuilder {
+private static final long serialVersionUID = 0L;
+ // Use GetStreamingSequenceReportRequest.newBuilder() to construct.
+ private GetStreamingSequenceReportRequest(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
+ super(builder);
+ }
+ private GetStreamingSequenceReportRequest() {
+ name_ = "";
+ }
+
+ @java.lang.Override
+ @SuppressWarnings({"unused"})
+ protected java.lang.Object newInstance(
+ UnusedPrivateParameter unused) {
+ return new GetStreamingSequenceReportRequest();
+ }
+
+ @java.lang.Override
+ public final com.google.protobuf.UnknownFieldSet
+ getUnknownFields() {
+ return this.unknownFields;
+ }
+ public static final com.google.protobuf.Descriptors.Descriptor
+ getDescriptor() {
+ return com.google.showcase.v1beta1.SequenceOuterClass.internal_static_google_showcase_v1beta1_GetStreamingSequenceReportRequest_descriptor;
+ }
+
+ @java.lang.Override
+ protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+ internalGetFieldAccessorTable() {
+ return com.google.showcase.v1beta1.SequenceOuterClass.internal_static_google_showcase_v1beta1_GetStreamingSequenceReportRequest_fieldAccessorTable
+ .ensureFieldAccessorsInitialized(
+ com.google.showcase.v1beta1.GetStreamingSequenceReportRequest.class, com.google.showcase.v1beta1.GetStreamingSequenceReportRequest.Builder.class);
+ }
+
+ public static final int NAME_FIELD_NUMBER = 1;
+ @SuppressWarnings("serial")
+ private volatile java.lang.Object name_ = "";
+ /**
+ * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
+ * @return The name.
+ */
+ @java.lang.Override
+ public java.lang.String getName() {
+ java.lang.Object ref = name_;
+ if (ref instanceof java.lang.String) {
+ return (java.lang.String) ref;
+ } else {
+ com.google.protobuf.ByteString bs =
+ (com.google.protobuf.ByteString) ref;
+ java.lang.String s = bs.toStringUtf8();
+ name_ = s;
+ return s;
+ }
+ }
+ /**
+ * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
+ * @return The bytes for name.
+ */
+ @java.lang.Override
+ public com.google.protobuf.ByteString
+ getNameBytes() {
+ java.lang.Object ref = name_;
+ if (ref instanceof java.lang.String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8(
+ (java.lang.String) ref);
+ name_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+
+ 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 (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) {
+ com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_);
+ }
+ getUnknownFields().writeTo(output);
+ }
+
+ @java.lang.Override
+ public int getSerializedSize() {
+ int size = memoizedSize;
+ if (size != -1) return size;
+
+ size = 0;
+ if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) {
+ size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_);
+ }
+ 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.showcase.v1beta1.GetStreamingSequenceReportRequest)) {
+ return super.equals(obj);
+ }
+ com.google.showcase.v1beta1.GetStreamingSequenceReportRequest other = (com.google.showcase.v1beta1.GetStreamingSequenceReportRequest) obj;
+
+ if (!getName()
+ .equals(other.getName())) 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) + NAME_FIELD_NUMBER;
+ hash = (53 * hash) + getName().hashCode();
+ hash = (29 * hash) + getUnknownFields().hashCode();
+ memoizedHashCode = hash;
+ return hash;
+ }
+
+ public static com.google.showcase.v1beta1.GetStreamingSequenceReportRequest parseFrom(
+ java.nio.ByteBuffer data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+ public static com.google.showcase.v1beta1.GetStreamingSequenceReportRequest parseFrom(
+ java.nio.ByteBuffer data,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+ public static com.google.showcase.v1beta1.GetStreamingSequenceReportRequest parseFrom(
+ com.google.protobuf.ByteString data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+ public static com.google.showcase.v1beta1.GetStreamingSequenceReportRequest 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.showcase.v1beta1.GetStreamingSequenceReportRequest parseFrom(byte[] data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+ public static com.google.showcase.v1beta1.GetStreamingSequenceReportRequest parseFrom(
+ byte[] data,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+ public static com.google.showcase.v1beta1.GetStreamingSequenceReportRequest parseFrom(java.io.InputStream input)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3
+ .parseWithIOException(PARSER, input);
+ }
+ public static com.google.showcase.v1beta1.GetStreamingSequenceReportRequest 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.showcase.v1beta1.GetStreamingSequenceReportRequest parseDelimitedFrom(java.io.InputStream input)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3
+ .parseDelimitedWithIOException(PARSER, input);
+ }
+ public static com.google.showcase.v1beta1.GetStreamingSequenceReportRequest 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.showcase.v1beta1.GetStreamingSequenceReportRequest parseFrom(
+ com.google.protobuf.CodedInputStream input)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3
+ .parseWithIOException(PARSER, input);
+ }
+ public static com.google.showcase.v1beta1.GetStreamingSequenceReportRequest 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.showcase.v1beta1.GetStreamingSequenceReportRequest 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;
+ }
+ /**
+ * Protobuf type {@code google.showcase.v1beta1.GetStreamingSequenceReportRequest}
+ */
+ public static final class Builder extends
+ com.google.protobuf.GeneratedMessageV3.Builderstring name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
+ * @return The name.
+ */
+ public java.lang.String getName() {
+ java.lang.Object ref = name_;
+ if (!(ref instanceof java.lang.String)) {
+ com.google.protobuf.ByteString bs =
+ (com.google.protobuf.ByteString) ref;
+ java.lang.String s = bs.toStringUtf8();
+ name_ = s;
+ return s;
+ } else {
+ return (java.lang.String) ref;
+ }
+ }
+ /**
+ * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
+ * @return The bytes for name.
+ */
+ public com.google.protobuf.ByteString
+ getNameBytes() {
+ java.lang.Object ref = name_;
+ if (ref instanceof String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8(
+ (java.lang.String) ref);
+ name_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+ /**
+ * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
+ * @param value The name to set.
+ * @return This builder for chaining.
+ */
+ public Builder setName(
+ java.lang.String value) {
+ if (value == null) { throw new NullPointerException(); }
+ name_ = value;
+ bitField0_ |= 0x00000001;
+ onChanged();
+ return this;
+ }
+ /**
+ * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
+ * @return This builder for chaining.
+ */
+ public Builder clearName() {
+ name_ = getDefaultInstance().getName();
+ bitField0_ = (bitField0_ & ~0x00000001);
+ onChanged();
+ return this;
+ }
+ /**
+ * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
+ * @param value The bytes for name to set.
+ * @return This builder for chaining.
+ */
+ public Builder setNameBytes(
+ com.google.protobuf.ByteString value) {
+ if (value == null) { throw new NullPointerException(); }
+ checkByteStringIsUtf8(value);
+ name_ = value;
+ bitField0_ |= 0x00000001;
+ 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.showcase.v1beta1.GetStreamingSequenceReportRequest)
+ }
+
+ // @@protoc_insertion_point(class_scope:google.showcase.v1beta1.GetStreamingSequenceReportRequest)
+ private static final com.google.showcase.v1beta1.GetStreamingSequenceReportRequest DEFAULT_INSTANCE;
+ static {
+ DEFAULT_INSTANCE = new com.google.showcase.v1beta1.GetStreamingSequenceReportRequest();
+ }
+
+ public static com.google.showcase.v1beta1.GetStreamingSequenceReportRequest getDefaultInstance() {
+ return DEFAULT_INSTANCE;
+ }
+
+ private static final com.google.protobuf.Parserstring name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
+ * @return The name.
+ */
+ java.lang.String getName();
+ /**
+ * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
+ * @return The bytes for name.
+ */
+ com.google.protobuf.ByteString
+ getNameBytes();
+}
diff --git a/showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/SequenceOuterClass.java b/showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/SequenceOuterClass.java
index d3c0d424eb..a4b1da88d7 100644
--- a/showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/SequenceOuterClass.java
+++ b/showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/SequenceOuterClass.java
@@ -24,6 +24,26 @@ public static void registerAllExtensions(
static final
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internal_static_google_showcase_v1beta1_Sequence_Response_fieldAccessorTable;
+ static final com.google.protobuf.Descriptors.Descriptor
+ internal_static_google_showcase_v1beta1_StreamingSequence_descriptor;
+ static final
+ com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+ internal_static_google_showcase_v1beta1_StreamingSequence_fieldAccessorTable;
+ static final com.google.protobuf.Descriptors.Descriptor
+ internal_static_google_showcase_v1beta1_StreamingSequence_Response_descriptor;
+ static final
+ com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+ internal_static_google_showcase_v1beta1_StreamingSequence_Response_fieldAccessorTable;
+ static final com.google.protobuf.Descriptors.Descriptor
+ internal_static_google_showcase_v1beta1_StreamingSequenceReport_descriptor;
+ static final
+ com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+ internal_static_google_showcase_v1beta1_StreamingSequenceReport_fieldAccessorTable;
+ static final com.google.protobuf.Descriptors.Descriptor
+ internal_static_google_showcase_v1beta1_StreamingSequenceReport_Attempt_descriptor;
+ static final
+ com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+ internal_static_google_showcase_v1beta1_StreamingSequenceReport_Attempt_fieldAccessorTable;
static final com.google.protobuf.Descriptors.Descriptor
internal_static_google_showcase_v1beta1_SequenceReport_descriptor;
static final
@@ -39,16 +59,36 @@ public static void registerAllExtensions(
static final
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internal_static_google_showcase_v1beta1_CreateSequenceRequest_fieldAccessorTable;
+ static final com.google.protobuf.Descriptors.Descriptor
+ internal_static_google_showcase_v1beta1_CreateStreamingSequenceRequest_descriptor;
+ static final
+ com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+ internal_static_google_showcase_v1beta1_CreateStreamingSequenceRequest_fieldAccessorTable;
static final com.google.protobuf.Descriptors.Descriptor
internal_static_google_showcase_v1beta1_AttemptSequenceRequest_descriptor;
static final
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internal_static_google_showcase_v1beta1_AttemptSequenceRequest_fieldAccessorTable;
+ static final com.google.protobuf.Descriptors.Descriptor
+ internal_static_google_showcase_v1beta1_AttemptStreamingSequenceRequest_descriptor;
+ static final
+ com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+ internal_static_google_showcase_v1beta1_AttemptStreamingSequenceRequest_fieldAccessorTable;
+ static final com.google.protobuf.Descriptors.Descriptor
+ internal_static_google_showcase_v1beta1_AttemptStreamingSequenceResponse_descriptor;
+ static final
+ com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+ internal_static_google_showcase_v1beta1_AttemptStreamingSequenceResponse_fieldAccessorTable;
static final com.google.protobuf.Descriptors.Descriptor
internal_static_google_showcase_v1beta1_GetSequenceReportRequest_descriptor;
static final
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internal_static_google_showcase_v1beta1_GetSequenceReportRequest_fieldAccessorTable;
+ static final com.google.protobuf.Descriptors.Descriptor
+ internal_static_google_showcase_v1beta1_GetStreamingSequenceReportRequest_descriptor;
+ static final
+ com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+ internal_static_google_showcase_v1beta1_GetStreamingSequenceReportRequest_fieldAccessorTable;
public static com.google.protobuf.Descriptors.FileDescriptor
getDescriptor() {
@@ -71,40 +111,85 @@ public static void registerAllExtensions(
"e\032X\n\010Response\022\"\n\006status\030\001 \001(\0132\022.google.r" +
"pc.Status\022(\n\005delay\030\002 \001(\0132\031.google.protob" +
"uf.Duration:;\352A8\n showcase.googleapis.co" +
- "m/Sequence\022\024sequences/{sequence}\"\233\003\n\016Seq" +
- "uenceReport\022\021\n\004name\030\001 \001(\tB\003\340A\003\022A\n\010attemp" +
- "ts\030\002 \003(\0132/.google.showcase.v1beta1.Seque" +
- "nceReport.Attempt\032\340\001\n\007Attempt\022\026\n\016attempt" +
- "_number\030\001 \001(\005\0224\n\020attempt_deadline\030\002 \001(\0132" +
- "\032.google.protobuf.Timestamp\0221\n\rresponse_" +
- "time\030\003 \001(\0132\032.google.protobuf.Timestamp\0220" +
- "\n\rattempt_delay\030\004 \001(\0132\031.google.protobuf." +
- "Duration\022\"\n\006status\030\005 \001(\0132\022.google.rpc.St" +
- "atus:P\352AM\n&showcase.googleapis.com/Seque" +
- "nceReport\022#sequences/{sequence}/sequence" +
- "Report\"L\n\025CreateSequenceRequest\0223\n\010seque" +
- "nce\030\001 \001(\0132!.google.showcase.v1beta1.Sequ" +
- "ence\"P\n\026AttemptSequenceRequest\0226\n\004name\030\001" +
- " \001(\tB(\372A\"\n showcase.googleapis.com/Seque" +
- "nce\340A\002\"X\n\030GetSequenceReportRequest\022<\n\004na" +
- "me\030\001 \001(\tB.\372A(\n&showcase.googleapis.com/S" +
- "equenceReport\340A\0022\364\003\n\017SequenceService\022\224\001\n" +
- "\016CreateSequence\022..google.showcase.v1beta" +
- "1.CreateSequenceRequest\032!.google.showcas" +
- "e.v1beta1.Sequence\"/\202\323\344\223\002\036\"\022/v1beta1/seq" +
- "uences:\010sequence\332A\010sequence\022\252\001\n\021GetSeque" +
- "nceReport\0221.google.showcase.v1beta1.GetS" +
- "equenceReportRequest\032\'.google.showcase.v" +
- "1beta1.SequenceReport\"9\202\323\344\223\002,\022*/v1beta1/" +
- "{name=sequences/*/sequenceReport}\332A\004name" +
- "\022\211\001\n\017AttemptSequence\022/.google.showcase.v" +
- "1beta1.AttemptSequenceRequest\032\026.google.p" +
- "rotobuf.Empty\"-\202\323\344\223\002 \"\033/v1beta1/{name=se" +
- "quences/*}:\001*\332A\004name\032\021\312A\016localhost:7469B" +
- "q\n\033com.google.showcase.v1beta1P\001Z4github" +
- ".com/googleapis/gapic-showcase/server/ge" +
- "nproto\352\002\031Google::Showcase::V1beta1b\006prot" +
- "o3"
+ "m/Sequence\022\024sequences/{sequence}\"\312\002\n\021Str" +
+ "eamingSequence\022\021\n\004name\030\001 \001(\tB\003\340A\003\022\017\n\007con" +
+ "tent\030\002 \001(\t\022F\n\tresponses\030\003 \003(\01323.google.s" +
+ "howcase.v1beta1.StreamingSequence.Respon" +
+ "se\032p\n\010Response\022\"\n\006status\030\001 \001(\0132\022.google." +
+ "rpc.Status\022(\n\005delay\030\002 \001(\0132\031.google.proto" +
+ "buf.Duration\022\026\n\016response_index\030\003 \001(\005:W\352A" +
+ "T\n)showcase.googleapis.com/StreamingSequ" +
+ "ence\022\'streamingSequences/{streaming_sequ" +
+ "ence}\"\350\003\n\027StreamingSequenceReport\022\021\n\004nam" +
+ "e\030\001 \001(\tB\003\340A\003\022J\n\010attempts\030\002 \003(\01328.google." +
+ "showcase.v1beta1.StreamingSequenceReport" +
+ ".Attempt\032\366\001\n\007Attempt\022\026\n\016attempt_number\030\001" +
+ " \001(\005\0224\n\020attempt_deadline\030\002 \001(\0132\032.google." +
+ "protobuf.Timestamp\0221\n\rresponse_time\030\003 \001(" +
+ "\0132\032.google.protobuf.Timestamp\0220\n\rattempt" +
+ "_delay\030\004 \001(\0132\031.google.protobuf.Duration\022" +
+ "\"\n\006status\030\005 \001(\0132\022.google.rpc.Status\022\024\n\014c" +
+ "ontent_sent\030\006 \001(\t:u\352Ar\n/showcase.googlea" +
+ "pis.com/StreamingSequenceReport\022?streami" +
+ "ngSequences/{streaming_sequence}/streami" +
+ "ngSequenceReport\"\233\003\n\016SequenceReport\022\021\n\004n" +
+ "ame\030\001 \001(\tB\003\340A\003\022A\n\010attempts\030\002 \003(\0132/.googl" +
+ "e.showcase.v1beta1.SequenceReport.Attemp" +
+ "t\032\340\001\n\007Attempt\022\026\n\016attempt_number\030\001 \001(\005\0224\n" +
+ "\020attempt_deadline\030\002 \001(\0132\032.google.protobu" +
+ "f.Timestamp\0221\n\rresponse_time\030\003 \001(\0132\032.goo" +
+ "gle.protobuf.Timestamp\0220\n\rattempt_delay\030" +
+ "\004 \001(\0132\031.google.protobuf.Duration\022\"\n\006stat" +
+ "us\030\005 \001(\0132\022.google.rpc.Status:P\352AM\n&showc" +
+ "ase.googleapis.com/SequenceReport\022#seque" +
+ "nces/{sequence}/sequenceReport\"L\n\025Create" +
+ "SequenceRequest\0223\n\010sequence\030\001 \001(\0132!.goog" +
+ "le.showcase.v1beta1.Sequence\"h\n\036CreateSt" +
+ "reamingSequenceRequest\022F\n\022streaming_sequ" +
+ "ence\030\001 \001(\0132*.google.showcase.v1beta1.Str" +
+ "eamingSequence\"P\n\026AttemptSequenceRequest" +
+ "\0226\n\004name\030\001 \001(\tB(\372A\"\n showcase.googleapis" +
+ ".com/Sequence\340A\002\"b\n\037AttemptStreamingSequ" +
+ "enceRequest\022?\n\004name\030\001 \001(\tB1\372A+\n)showcase" +
+ ".googleapis.com/StreamingSequence\340A\002\"3\n " +
+ "AttemptStreamingSequenceResponse\022\017\n\007cont" +
+ "ent\030\001 \001(\t\"X\n\030GetSequenceReportRequest\022<\n" +
+ "\004name\030\001 \001(\tB.\372A(\n&showcase.googleapis.co" +
+ "m/SequenceReport\340A\002\"j\n!GetStreamingSeque" +
+ "nceReportRequest\022E\n\004name\030\001 \001(\tB7\372A1\n/sho" +
+ "wcase.googleapis.com/StreamingSequenceRe" +
+ "port\340A\0022\360\010\n\017SequenceService\022\224\001\n\016CreateSe" +
+ "quence\022..google.showcase.v1beta1.CreateS" +
+ "equenceRequest\032!.google.showcase.v1beta1" +
+ ".Sequence\"/\202\323\344\223\002\036\"\022/v1beta1/sequences:\010s" +
+ "equence\332A\010sequence\022\314\001\n\027CreateStreamingSe" +
+ "quence\0227.google.showcase.v1beta1.CreateS" +
+ "treamingSequenceRequest\032*.google.showcas" +
+ "e.v1beta1.StreamingSequence\"L\202\323\344\223\0021\"\033/v1" +
+ "beta1/streamingSequences:\022streaming_sequ" +
+ "ence\332A\022streaming_sequence\022\252\001\n\021GetSequenc" +
+ "eReport\0221.google.showcase.v1beta1.GetSeq" +
+ "uenceReportRequest\032\'.google.showcase.v1b" +
+ "eta1.SequenceReport\"9\202\323\344\223\002,\022*/v1beta1/{n" +
+ "ame=sequences/*/sequenceReport}\332A\004name\022\327" +
+ "\001\n\032GetStreamingSequenceReport\022:.google.s" +
+ "howcase.v1beta1.GetStreamingSequenceRepo" +
+ "rtRequest\0320.google.showcase.v1beta1.Stre" +
+ "amingSequenceReport\"K\202\323\344\223\002>\022 builder) {
+ super(builder);
+ }
+ private StreamingSequence() {
+ name_ = "";
+ content_ = "";
+ responses_ = java.util.Collections.emptyList();
+ }
+
+ @java.lang.Override
+ @SuppressWarnings({"unused"})
+ protected java.lang.Object newInstance(
+ UnusedPrivateParameter unused) {
+ return new StreamingSequence();
+ }
+
+ @java.lang.Override
+ public final com.google.protobuf.UnknownFieldSet
+ getUnknownFields() {
+ return this.unknownFields;
+ }
+ public static final com.google.protobuf.Descriptors.Descriptor
+ getDescriptor() {
+ return com.google.showcase.v1beta1.SequenceOuterClass.internal_static_google_showcase_v1beta1_StreamingSequence_descriptor;
+ }
+
+ @java.lang.Override
+ protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+ internalGetFieldAccessorTable() {
+ return com.google.showcase.v1beta1.SequenceOuterClass.internal_static_google_showcase_v1beta1_StreamingSequence_fieldAccessorTable
+ .ensureFieldAccessorsInitialized(
+ com.google.showcase.v1beta1.StreamingSequence.class, com.google.showcase.v1beta1.StreamingSequence.Builder.class);
+ }
+
+ public interface ResponseOrBuilder extends
+ // @@protoc_insertion_point(interface_extends:google.showcase.v1beta1.StreamingSequence.Response)
+ com.google.protobuf.MessageOrBuilder {
+
+ /**
+ * + * The status to return for an individual attempt. + *+ * + *
.google.rpc.Status status = 1;
+ * @return Whether the status field is set.
+ */
+ boolean hasStatus();
+ /**
+ * + * The status to return for an individual attempt. + *+ * + *
.google.rpc.Status status = 1;
+ * @return The status.
+ */
+ com.google.rpc.Status getStatus();
+ /**
+ * + * The status to return for an individual attempt. + *+ * + *
.google.rpc.Status status = 1;
+ */
+ com.google.rpc.StatusOrBuilder getStatusOrBuilder();
+
+ /**
+ * + * The amount of time to delay sending the response. + *+ * + *
.google.protobuf.Duration delay = 2;
+ * @return Whether the delay field is set.
+ */
+ boolean hasDelay();
+ /**
+ * + * The amount of time to delay sending the response. + *+ * + *
.google.protobuf.Duration delay = 2;
+ * @return The delay.
+ */
+ com.google.protobuf.Duration getDelay();
+ /**
+ * + * The amount of time to delay sending the response. + *+ * + *
.google.protobuf.Duration delay = 2;
+ */
+ com.google.protobuf.DurationOrBuilder getDelayOrBuilder();
+
+ /**
+ * + * The index that the status should be sent + *+ * + *
int32 response_index = 3;
+ * @return The responseIndex.
+ */
+ int getResponseIndex();
+ }
+ /**
+ * + * A server response to an RPC Attempt in a sequence. + *+ * + * Protobuf type {@code google.showcase.v1beta1.StreamingSequence.Response} + */ + public static final class Response extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:google.showcase.v1beta1.StreamingSequence.Response) + ResponseOrBuilder { + private static final long serialVersionUID = 0L; + // Use Response.newBuilder() to construct. + private Response(com.google.protobuf.GeneratedMessageV3.Builder> builder) { + super(builder); + } + private Response() { + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { + return new Response(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.showcase.v1beta1.SequenceOuterClass.internal_static_google_showcase_v1beta1_StreamingSequence_Response_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.showcase.v1beta1.SequenceOuterClass.internal_static_google_showcase_v1beta1_StreamingSequence_Response_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.showcase.v1beta1.StreamingSequence.Response.class, com.google.showcase.v1beta1.StreamingSequence.Response.Builder.class); + } + + public static final int STATUS_FIELD_NUMBER = 1; + private com.google.rpc.Status status_; + /** + *
+ * The status to return for an individual attempt. + *+ * + *
.google.rpc.Status status = 1;
+ * @return Whether the status field is set.
+ */
+ @java.lang.Override
+ public boolean hasStatus() {
+ return status_ != null;
+ }
+ /**
+ * + * The status to return for an individual attempt. + *+ * + *
.google.rpc.Status status = 1;
+ * @return The status.
+ */
+ @java.lang.Override
+ public com.google.rpc.Status getStatus() {
+ return status_ == null ? com.google.rpc.Status.getDefaultInstance() : status_;
+ }
+ /**
+ * + * The status to return for an individual attempt. + *+ * + *
.google.rpc.Status status = 1;
+ */
+ @java.lang.Override
+ public com.google.rpc.StatusOrBuilder getStatusOrBuilder() {
+ return status_ == null ? com.google.rpc.Status.getDefaultInstance() : status_;
+ }
+
+ public static final int DELAY_FIELD_NUMBER = 2;
+ private com.google.protobuf.Duration delay_;
+ /**
+ * + * The amount of time to delay sending the response. + *+ * + *
.google.protobuf.Duration delay = 2;
+ * @return Whether the delay field is set.
+ */
+ @java.lang.Override
+ public boolean hasDelay() {
+ return delay_ != null;
+ }
+ /**
+ * + * The amount of time to delay sending the response. + *+ * + *
.google.protobuf.Duration delay = 2;
+ * @return The delay.
+ */
+ @java.lang.Override
+ public com.google.protobuf.Duration getDelay() {
+ return delay_ == null ? com.google.protobuf.Duration.getDefaultInstance() : delay_;
+ }
+ /**
+ * + * The amount of time to delay sending the response. + *+ * + *
.google.protobuf.Duration delay = 2;
+ */
+ @java.lang.Override
+ public com.google.protobuf.DurationOrBuilder getDelayOrBuilder() {
+ return delay_ == null ? com.google.protobuf.Duration.getDefaultInstance() : delay_;
+ }
+
+ public static final int RESPONSE_INDEX_FIELD_NUMBER = 3;
+ private int responseIndex_ = 0;
+ /**
+ * + * The index that the status should be sent + *+ * + *
int32 response_index = 3;
+ * @return The responseIndex.
+ */
+ @java.lang.Override
+ public int getResponseIndex() {
+ return responseIndex_;
+ }
+
+ 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 (status_ != null) {
+ output.writeMessage(1, getStatus());
+ }
+ if (delay_ != null) {
+ output.writeMessage(2, getDelay());
+ }
+ if (responseIndex_ != 0) {
+ output.writeInt32(3, responseIndex_);
+ }
+ getUnknownFields().writeTo(output);
+ }
+
+ @java.lang.Override
+ public int getSerializedSize() {
+ int size = memoizedSize;
+ if (size != -1) return size;
+
+ size = 0;
+ if (status_ != null) {
+ size += com.google.protobuf.CodedOutputStream
+ .computeMessageSize(1, getStatus());
+ }
+ if (delay_ != null) {
+ size += com.google.protobuf.CodedOutputStream
+ .computeMessageSize(2, getDelay());
+ }
+ if (responseIndex_ != 0) {
+ size += com.google.protobuf.CodedOutputStream
+ .computeInt32Size(3, responseIndex_);
+ }
+ 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.showcase.v1beta1.StreamingSequence.Response)) {
+ return super.equals(obj);
+ }
+ com.google.showcase.v1beta1.StreamingSequence.Response other = (com.google.showcase.v1beta1.StreamingSequence.Response) obj;
+
+ if (hasStatus() != other.hasStatus()) return false;
+ if (hasStatus()) {
+ if (!getStatus()
+ .equals(other.getStatus())) return false;
+ }
+ if (hasDelay() != other.hasDelay()) return false;
+ if (hasDelay()) {
+ if (!getDelay()
+ .equals(other.getDelay())) return false;
+ }
+ if (getResponseIndex()
+ != other.getResponseIndex()) 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();
+ if (hasStatus()) {
+ hash = (37 * hash) + STATUS_FIELD_NUMBER;
+ hash = (53 * hash) + getStatus().hashCode();
+ }
+ if (hasDelay()) {
+ hash = (37 * hash) + DELAY_FIELD_NUMBER;
+ hash = (53 * hash) + getDelay().hashCode();
+ }
+ hash = (37 * hash) + RESPONSE_INDEX_FIELD_NUMBER;
+ hash = (53 * hash) + getResponseIndex();
+ hash = (29 * hash) + getUnknownFields().hashCode();
+ memoizedHashCode = hash;
+ return hash;
+ }
+
+ public static com.google.showcase.v1beta1.StreamingSequence.Response parseFrom(
+ java.nio.ByteBuffer data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+ public static com.google.showcase.v1beta1.StreamingSequence.Response parseFrom(
+ java.nio.ByteBuffer data,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+ public static com.google.showcase.v1beta1.StreamingSequence.Response parseFrom(
+ com.google.protobuf.ByteString data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+ public static com.google.showcase.v1beta1.StreamingSequence.Response 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.showcase.v1beta1.StreamingSequence.Response parseFrom(byte[] data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+ public static com.google.showcase.v1beta1.StreamingSequence.Response parseFrom(
+ byte[] data,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+ public static com.google.showcase.v1beta1.StreamingSequence.Response parseFrom(java.io.InputStream input)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3
+ .parseWithIOException(PARSER, input);
+ }
+ public static com.google.showcase.v1beta1.StreamingSequence.Response 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.showcase.v1beta1.StreamingSequence.Response parseDelimitedFrom(java.io.InputStream input)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3
+ .parseDelimitedWithIOException(PARSER, input);
+ }
+ public static com.google.showcase.v1beta1.StreamingSequence.Response 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.showcase.v1beta1.StreamingSequence.Response parseFrom(
+ com.google.protobuf.CodedInputStream input)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3
+ .parseWithIOException(PARSER, input);
+ }
+ public static com.google.showcase.v1beta1.StreamingSequence.Response 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.showcase.v1beta1.StreamingSequence.Response 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;
+ }
+ /**
+ * + * A server response to an RPC Attempt in a sequence. + *+ * + * Protobuf type {@code google.showcase.v1beta1.StreamingSequence.Response} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder
+ * The status to return for an individual attempt. + *+ * + *
.google.rpc.Status status = 1;
+ * @return Whether the status field is set.
+ */
+ public boolean hasStatus() {
+ return ((bitField0_ & 0x00000001) != 0);
+ }
+ /**
+ * + * The status to return for an individual attempt. + *+ * + *
.google.rpc.Status status = 1;
+ * @return The status.
+ */
+ public com.google.rpc.Status getStatus() {
+ if (statusBuilder_ == null) {
+ return status_ == null ? com.google.rpc.Status.getDefaultInstance() : status_;
+ } else {
+ return statusBuilder_.getMessage();
+ }
+ }
+ /**
+ * + * The status to return for an individual attempt. + *+ * + *
.google.rpc.Status status = 1;
+ */
+ public Builder setStatus(com.google.rpc.Status value) {
+ if (statusBuilder_ == null) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ status_ = value;
+ } else {
+ statusBuilder_.setMessage(value);
+ }
+ bitField0_ |= 0x00000001;
+ onChanged();
+ return this;
+ }
+ /**
+ * + * The status to return for an individual attempt. + *+ * + *
.google.rpc.Status status = 1;
+ */
+ public Builder setStatus(
+ com.google.rpc.Status.Builder builderForValue) {
+ if (statusBuilder_ == null) {
+ status_ = builderForValue.build();
+ } else {
+ statusBuilder_.setMessage(builderForValue.build());
+ }
+ bitField0_ |= 0x00000001;
+ onChanged();
+ return this;
+ }
+ /**
+ * + * The status to return for an individual attempt. + *+ * + *
.google.rpc.Status status = 1;
+ */
+ public Builder mergeStatus(com.google.rpc.Status value) {
+ if (statusBuilder_ == null) {
+ if (((bitField0_ & 0x00000001) != 0) &&
+ status_ != null &&
+ status_ != com.google.rpc.Status.getDefaultInstance()) {
+ getStatusBuilder().mergeFrom(value);
+ } else {
+ status_ = value;
+ }
+ } else {
+ statusBuilder_.mergeFrom(value);
+ }
+ bitField0_ |= 0x00000001;
+ onChanged();
+ return this;
+ }
+ /**
+ * + * The status to return for an individual attempt. + *+ * + *
.google.rpc.Status status = 1;
+ */
+ public Builder clearStatus() {
+ bitField0_ = (bitField0_ & ~0x00000001);
+ status_ = null;
+ if (statusBuilder_ != null) {
+ statusBuilder_.dispose();
+ statusBuilder_ = null;
+ }
+ onChanged();
+ return this;
+ }
+ /**
+ * + * The status to return for an individual attempt. + *+ * + *
.google.rpc.Status status = 1;
+ */
+ public com.google.rpc.Status.Builder getStatusBuilder() {
+ bitField0_ |= 0x00000001;
+ onChanged();
+ return getStatusFieldBuilder().getBuilder();
+ }
+ /**
+ * + * The status to return for an individual attempt. + *+ * + *
.google.rpc.Status status = 1;
+ */
+ public com.google.rpc.StatusOrBuilder getStatusOrBuilder() {
+ if (statusBuilder_ != null) {
+ return statusBuilder_.getMessageOrBuilder();
+ } else {
+ return status_ == null ?
+ com.google.rpc.Status.getDefaultInstance() : status_;
+ }
+ }
+ /**
+ * + * The status to return for an individual attempt. + *+ * + *
.google.rpc.Status status = 1;
+ */
+ private com.google.protobuf.SingleFieldBuilderV3<
+ com.google.rpc.Status, com.google.rpc.Status.Builder, com.google.rpc.StatusOrBuilder>
+ getStatusFieldBuilder() {
+ if (statusBuilder_ == null) {
+ statusBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
+ com.google.rpc.Status, com.google.rpc.Status.Builder, com.google.rpc.StatusOrBuilder>(
+ getStatus(),
+ getParentForChildren(),
+ isClean());
+ status_ = null;
+ }
+ return statusBuilder_;
+ }
+
+ private com.google.protobuf.Duration delay_;
+ private com.google.protobuf.SingleFieldBuilderV3<
+ com.google.protobuf.Duration, com.google.protobuf.Duration.Builder, com.google.protobuf.DurationOrBuilder> delayBuilder_;
+ /**
+ * + * The amount of time to delay sending the response. + *+ * + *
.google.protobuf.Duration delay = 2;
+ * @return Whether the delay field is set.
+ */
+ public boolean hasDelay() {
+ return ((bitField0_ & 0x00000002) != 0);
+ }
+ /**
+ * + * The amount of time to delay sending the response. + *+ * + *
.google.protobuf.Duration delay = 2;
+ * @return The delay.
+ */
+ public com.google.protobuf.Duration getDelay() {
+ if (delayBuilder_ == null) {
+ return delay_ == null ? com.google.protobuf.Duration.getDefaultInstance() : delay_;
+ } else {
+ return delayBuilder_.getMessage();
+ }
+ }
+ /**
+ * + * The amount of time to delay sending the response. + *+ * + *
.google.protobuf.Duration delay = 2;
+ */
+ public Builder setDelay(com.google.protobuf.Duration value) {
+ if (delayBuilder_ == null) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ delay_ = value;
+ } else {
+ delayBuilder_.setMessage(value);
+ }
+ bitField0_ |= 0x00000002;
+ onChanged();
+ return this;
+ }
+ /**
+ * + * The amount of time to delay sending the response. + *+ * + *
.google.protobuf.Duration delay = 2;
+ */
+ public Builder setDelay(
+ com.google.protobuf.Duration.Builder builderForValue) {
+ if (delayBuilder_ == null) {
+ delay_ = builderForValue.build();
+ } else {
+ delayBuilder_.setMessage(builderForValue.build());
+ }
+ bitField0_ |= 0x00000002;
+ onChanged();
+ return this;
+ }
+ /**
+ * + * The amount of time to delay sending the response. + *+ * + *
.google.protobuf.Duration delay = 2;
+ */
+ public Builder mergeDelay(com.google.protobuf.Duration value) {
+ if (delayBuilder_ == null) {
+ if (((bitField0_ & 0x00000002) != 0) &&
+ delay_ != null &&
+ delay_ != com.google.protobuf.Duration.getDefaultInstance()) {
+ getDelayBuilder().mergeFrom(value);
+ } else {
+ delay_ = value;
+ }
+ } else {
+ delayBuilder_.mergeFrom(value);
+ }
+ bitField0_ |= 0x00000002;
+ onChanged();
+ return this;
+ }
+ /**
+ * + * The amount of time to delay sending the response. + *+ * + *
.google.protobuf.Duration delay = 2;
+ */
+ public Builder clearDelay() {
+ bitField0_ = (bitField0_ & ~0x00000002);
+ delay_ = null;
+ if (delayBuilder_ != null) {
+ delayBuilder_.dispose();
+ delayBuilder_ = null;
+ }
+ onChanged();
+ return this;
+ }
+ /**
+ * + * The amount of time to delay sending the response. + *+ * + *
.google.protobuf.Duration delay = 2;
+ */
+ public com.google.protobuf.Duration.Builder getDelayBuilder() {
+ bitField0_ |= 0x00000002;
+ onChanged();
+ return getDelayFieldBuilder().getBuilder();
+ }
+ /**
+ * + * The amount of time to delay sending the response. + *+ * + *
.google.protobuf.Duration delay = 2;
+ */
+ public com.google.protobuf.DurationOrBuilder getDelayOrBuilder() {
+ if (delayBuilder_ != null) {
+ return delayBuilder_.getMessageOrBuilder();
+ } else {
+ return delay_ == null ?
+ com.google.protobuf.Duration.getDefaultInstance() : delay_;
+ }
+ }
+ /**
+ * + * The amount of time to delay sending the response. + *+ * + *
.google.protobuf.Duration delay = 2;
+ */
+ private com.google.protobuf.SingleFieldBuilderV3<
+ com.google.protobuf.Duration, com.google.protobuf.Duration.Builder, com.google.protobuf.DurationOrBuilder>
+ getDelayFieldBuilder() {
+ if (delayBuilder_ == null) {
+ delayBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
+ com.google.protobuf.Duration, com.google.protobuf.Duration.Builder, com.google.protobuf.DurationOrBuilder>(
+ getDelay(),
+ getParentForChildren(),
+ isClean());
+ delay_ = null;
+ }
+ return delayBuilder_;
+ }
+
+ private int responseIndex_ ;
+ /**
+ * + * The index that the status should be sent + *+ * + *
int32 response_index = 3;
+ * @return The responseIndex.
+ */
+ @java.lang.Override
+ public int getResponseIndex() {
+ return responseIndex_;
+ }
+ /**
+ * + * The index that the status should be sent + *+ * + *
int32 response_index = 3;
+ * @param value The responseIndex to set.
+ * @return This builder for chaining.
+ */
+ public Builder setResponseIndex(int value) {
+
+ responseIndex_ = value;
+ bitField0_ |= 0x00000004;
+ onChanged();
+ return this;
+ }
+ /**
+ * + * The index that the status should be sent + *+ * + *
int32 response_index = 3;
+ * @return This builder for chaining.
+ */
+ public Builder clearResponseIndex() {
+ bitField0_ = (bitField0_ & ~0x00000004);
+ responseIndex_ = 0;
+ 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.showcase.v1beta1.StreamingSequence.Response)
+ }
+
+ // @@protoc_insertion_point(class_scope:google.showcase.v1beta1.StreamingSequence.Response)
+ private static final com.google.showcase.v1beta1.StreamingSequence.Response DEFAULT_INSTANCE;
+ static {
+ DEFAULT_INSTANCE = new com.google.showcase.v1beta1.StreamingSequence.Response();
+ }
+
+ public static com.google.showcase.v1beta1.StreamingSequence.Response getDefaultInstance() {
+ return DEFAULT_INSTANCE;
+ }
+
+ private static final com.google.protobuf.Parser