
com.google.cloud.visionai.v1.RemoveApplicationStreamInputRequest Maven / Gradle / Ivy
/*
* Copyright 2024 Google LLC
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* https://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
// Generated by the protocol buffer compiler. DO NOT EDIT!
// source: google/cloud/visionai/v1/platform.proto
// Protobuf Java Version: 3.25.3
package com.google.cloud.visionai.v1;
/**
*
*
*
* Message for removing stream input from an Application.
*
*
* Protobuf type {@code google.cloud.visionai.v1.RemoveApplicationStreamInputRequest}
*/
public final class RemoveApplicationStreamInputRequest
extends com.google.protobuf.GeneratedMessageV3
implements
// @@protoc_insertion_point(message_implements:google.cloud.visionai.v1.RemoveApplicationStreamInputRequest)
RemoveApplicationStreamInputRequestOrBuilder {
private static final long serialVersionUID = 0L;
// Use RemoveApplicationStreamInputRequest.newBuilder() to construct.
private RemoveApplicationStreamInputRequest(
com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private RemoveApplicationStreamInputRequest() {
name_ = "";
targetStreamInputs_ = java.util.Collections.emptyList();
requestId_ = "";
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
return new RemoveApplicationStreamInputRequest();
}
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
return com.google.cloud.visionai.v1.PlatformProto
.internal_static_google_cloud_visionai_v1_RemoveApplicationStreamInputRequest_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.google.cloud.visionai.v1.PlatformProto
.internal_static_google_cloud_visionai_v1_RemoveApplicationStreamInputRequest_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.google.cloud.visionai.v1.RemoveApplicationStreamInputRequest.class,
com.google.cloud.visionai.v1.RemoveApplicationStreamInputRequest.Builder.class);
}
public interface TargetStreamInputOrBuilder
extends
// @@protoc_insertion_point(interface_extends:google.cloud.visionai.v1.RemoveApplicationStreamInputRequest.TargetStreamInput)
com.google.protobuf.MessageOrBuilder {
/**
* string stream = 1 [(.google.api.resource_reference) = { ... }
*
* @return The stream.
*/
java.lang.String getStream();
/**
* string stream = 1 [(.google.api.resource_reference) = { ... }
*
* @return The bytes for stream.
*/
com.google.protobuf.ByteString getStreamBytes();
}
/**
*
*
*
* Message about target streamInput to remove.
*
*
* Protobuf type {@code
* google.cloud.visionai.v1.RemoveApplicationStreamInputRequest.TargetStreamInput}
*/
public static final class TargetStreamInput extends com.google.protobuf.GeneratedMessageV3
implements
// @@protoc_insertion_point(message_implements:google.cloud.visionai.v1.RemoveApplicationStreamInputRequest.TargetStreamInput)
TargetStreamInputOrBuilder {
private static final long serialVersionUID = 0L;
// Use TargetStreamInput.newBuilder() to construct.
private TargetStreamInput(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private TargetStreamInput() {
stream_ = "";
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
return new TargetStreamInput();
}
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
return com.google.cloud.visionai.v1.PlatformProto
.internal_static_google_cloud_visionai_v1_RemoveApplicationStreamInputRequest_TargetStreamInput_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.google.cloud.visionai.v1.PlatformProto
.internal_static_google_cloud_visionai_v1_RemoveApplicationStreamInputRequest_TargetStreamInput_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.google.cloud.visionai.v1.RemoveApplicationStreamInputRequest.TargetStreamInput
.class,
com.google.cloud.visionai.v1.RemoveApplicationStreamInputRequest.TargetStreamInput
.Builder.class);
}
public static final int STREAM_FIELD_NUMBER = 1;
@SuppressWarnings("serial")
private volatile java.lang.Object stream_ = "";
/**
* string stream = 1 [(.google.api.resource_reference) = { ... }
*
* @return The stream.
*/
@java.lang.Override
public java.lang.String getStream() {
java.lang.Object ref = stream_;
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();
stream_ = s;
return s;
}
}
/**
* string stream = 1 [(.google.api.resource_reference) = { ... }
*
* @return The bytes for stream.
*/
@java.lang.Override
public com.google.protobuf.ByteString getStreamBytes() {
java.lang.Object ref = stream_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
stream_ = 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(stream_)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 1, stream_);
}
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(stream_)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, stream_);
}
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.cloud.visionai.v1.RemoveApplicationStreamInputRequest.TargetStreamInput)) {
return super.equals(obj);
}
com.google.cloud.visionai.v1.RemoveApplicationStreamInputRequest.TargetStreamInput other =
(com.google.cloud.visionai.v1.RemoveApplicationStreamInputRequest.TargetStreamInput) obj;
if (!getStream().equals(other.getStream())) 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) + STREAM_FIELD_NUMBER;
hash = (53 * hash) + getStream().hashCode();
hash = (29 * hash) + getUnknownFields().hashCode();
memoizedHashCode = hash;
return hash;
}
public static com.google.cloud.visionai.v1.RemoveApplicationStreamInputRequest.TargetStreamInput
parseFrom(java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.google.cloud.visionai.v1.RemoveApplicationStreamInputRequest.TargetStreamInput
parseFrom(
java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.google.cloud.visionai.v1.RemoveApplicationStreamInputRequest.TargetStreamInput
parseFrom(com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.google.cloud.visionai.v1.RemoveApplicationStreamInputRequest.TargetStreamInput
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.cloud.visionai.v1.RemoveApplicationStreamInputRequest.TargetStreamInput
parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.google.cloud.visionai.v1.RemoveApplicationStreamInputRequest.TargetStreamInput
parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.google.cloud.visionai.v1.RemoveApplicationStreamInputRequest.TargetStreamInput
parseFrom(java.io.InputStream input) throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
}
public static com.google.cloud.visionai.v1.RemoveApplicationStreamInputRequest.TargetStreamInput
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.cloud.visionai.v1.RemoveApplicationStreamInputRequest.TargetStreamInput
parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input);
}
public static com.google.cloud.visionai.v1.RemoveApplicationStreamInputRequest.TargetStreamInput
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.cloud.visionai.v1.RemoveApplicationStreamInputRequest.TargetStreamInput
parseFrom(com.google.protobuf.CodedInputStream input) throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
}
public static com.google.cloud.visionai.v1.RemoveApplicationStreamInputRequest.TargetStreamInput
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.cloud.visionai.v1.RemoveApplicationStreamInputRequest.TargetStreamInput
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;
}
/**
*
*
*
* Message about target streamInput to remove.
*
*
* Protobuf type {@code
* google.cloud.visionai.v1.RemoveApplicationStreamInputRequest.TargetStreamInput}
*/
public static final class Builder
extends com.google.protobuf.GeneratedMessageV3.Builder
implements
// @@protoc_insertion_point(builder_implements:google.cloud.visionai.v1.RemoveApplicationStreamInputRequest.TargetStreamInput)
com.google.cloud.visionai.v1.RemoveApplicationStreamInputRequest
.TargetStreamInputOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
return com.google.cloud.visionai.v1.PlatformProto
.internal_static_google_cloud_visionai_v1_RemoveApplicationStreamInputRequest_TargetStreamInput_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.google.cloud.visionai.v1.PlatformProto
.internal_static_google_cloud_visionai_v1_RemoveApplicationStreamInputRequest_TargetStreamInput_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.google.cloud.visionai.v1.RemoveApplicationStreamInputRequest.TargetStreamInput
.class,
com.google.cloud.visionai.v1.RemoveApplicationStreamInputRequest.TargetStreamInput
.Builder.class);
}
// Construct using
// com.google.cloud.visionai.v1.RemoveApplicationStreamInputRequest.TargetStreamInput.newBuilder()
private Builder() {}
private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
}
@java.lang.Override
public Builder clear() {
super.clear();
bitField0_ = 0;
stream_ = "";
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
return com.google.cloud.visionai.v1.PlatformProto
.internal_static_google_cloud_visionai_v1_RemoveApplicationStreamInputRequest_TargetStreamInput_descriptor;
}
@java.lang.Override
public com.google.cloud.visionai.v1.RemoveApplicationStreamInputRequest.TargetStreamInput
getDefaultInstanceForType() {
return com.google.cloud.visionai.v1.RemoveApplicationStreamInputRequest.TargetStreamInput
.getDefaultInstance();
}
@java.lang.Override
public com.google.cloud.visionai.v1.RemoveApplicationStreamInputRequest.TargetStreamInput
build() {
com.google.cloud.visionai.v1.RemoveApplicationStreamInputRequest.TargetStreamInput result =
buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public com.google.cloud.visionai.v1.RemoveApplicationStreamInputRequest.TargetStreamInput
buildPartial() {
com.google.cloud.visionai.v1.RemoveApplicationStreamInputRequest.TargetStreamInput result =
new com.google.cloud.visionai.v1.RemoveApplicationStreamInputRequest.TargetStreamInput(
this);
if (bitField0_ != 0) {
buildPartial0(result);
}
onBuilt();
return result;
}
private void buildPartial0(
com.google.cloud.visionai.v1.RemoveApplicationStreamInputRequest.TargetStreamInput
result) {
int from_bitField0_ = bitField0_;
if (((from_bitField0_ & 0x00000001) != 0)) {
result.stream_ = stream_;
}
}
@java.lang.Override
public Builder clone() {
return super.clone();
}
@java.lang.Override
public Builder setField(
com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
return super.setField(field, value);
}
@java.lang.Override
public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) {
return super.clearField(field);
}
@java.lang.Override
public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) {
return super.clearOneof(oneof);
}
@java.lang.Override
public Builder setRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
int index,
java.lang.Object value) {
return super.setRepeatedField(field, index, value);
}
@java.lang.Override
public Builder addRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
return super.addRepeatedField(field, value);
}
@java.lang.Override
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other
instanceof
com.google.cloud.visionai.v1.RemoveApplicationStreamInputRequest.TargetStreamInput) {
return mergeFrom(
(com.google.cloud.visionai.v1.RemoveApplicationStreamInputRequest.TargetStreamInput)
other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(
com.google.cloud.visionai.v1.RemoveApplicationStreamInputRequest.TargetStreamInput
other) {
if (other
== com.google.cloud.visionai.v1.RemoveApplicationStreamInputRequest.TargetStreamInput
.getDefaultInstance()) return this;
if (!other.getStream().isEmpty()) {
stream_ = other.stream_;
bitField0_ |= 0x00000001;
onChanged();
}
this.mergeUnknownFields(other.getUnknownFields());
onChanged();
return this;
}
@java.lang.Override
public final boolean isInitialized() {
return true;
}
@java.lang.Override
public Builder mergeFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
if (extensionRegistry == null) {
throw new java.lang.NullPointerException();
}
try {
boolean done = false;
while (!done) {
int tag = input.readTag();
switch (tag) {
case 0:
done = true;
break;
case 10:
{
stream_ = input.readStringRequireUtf8();
bitField0_ |= 0x00000001;
break;
} // case 10
default:
{
if (!super.parseUnknownField(input, extensionRegistry, tag)) {
done = true; // was an endgroup tag
}
break;
} // default:
} // switch (tag)
} // while (!done)
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.unwrapIOException();
} finally {
onChanged();
} // finally
return this;
}
private int bitField0_;
private java.lang.Object stream_ = "";
/**
* string stream = 1 [(.google.api.resource_reference) = { ... }
*
* @return The stream.
*/
public java.lang.String getStream() {
java.lang.Object ref = stream_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
stream_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
* string stream = 1 [(.google.api.resource_reference) = { ... }
*
* @return The bytes for stream.
*/
public com.google.protobuf.ByteString getStreamBytes() {
java.lang.Object ref = stream_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
stream_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
* string stream = 1 [(.google.api.resource_reference) = { ... }
*
* @param value The stream to set.
* @return This builder for chaining.
*/
public Builder setStream(java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
stream_ = value;
bitField0_ |= 0x00000001;
onChanged();
return this;
}
/**
* string stream = 1 [(.google.api.resource_reference) = { ... }
*
* @return This builder for chaining.
*/
public Builder clearStream() {
stream_ = getDefaultInstance().getStream();
bitField0_ = (bitField0_ & ~0x00000001);
onChanged();
return this;
}
/**
* string stream = 1 [(.google.api.resource_reference) = { ... }
*
* @param value The bytes for stream to set.
* @return This builder for chaining.
*/
public Builder setStreamBytes(com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
stream_ = 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.cloud.visionai.v1.RemoveApplicationStreamInputRequest.TargetStreamInput)
}
// @@protoc_insertion_point(class_scope:google.cloud.visionai.v1.RemoveApplicationStreamInputRequest.TargetStreamInput)
private static final com.google.cloud.visionai.v1.RemoveApplicationStreamInputRequest
.TargetStreamInput
DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE =
new com.google.cloud.visionai.v1.RemoveApplicationStreamInputRequest.TargetStreamInput();
}
public static com.google.cloud.visionai.v1.RemoveApplicationStreamInputRequest.TargetStreamInput
getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser PARSER =
new com.google.protobuf.AbstractParser() {
@java.lang.Override
public TargetStreamInput parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
Builder builder = newBuilder();
try {
builder.mergeFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.setUnfinishedMessage(builder.buildPartial());
} catch (com.google.protobuf.UninitializedMessageException e) {
throw e.asInvalidProtocolBufferException()
.setUnfinishedMessage(builder.buildPartial());
} catch (java.io.IOException e) {
throw new com.google.protobuf.InvalidProtocolBufferException(e)
.setUnfinishedMessage(builder.buildPartial());
}
return builder.buildPartial();
}
};
public static com.google.protobuf.Parser parser() {
return PARSER;
}
@java.lang.Override
public com.google.protobuf.Parser getParserForType() {
return PARSER;
}
@java.lang.Override
public com.google.cloud.visionai.v1.RemoveApplicationStreamInputRequest.TargetStreamInput
getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public static final int NAME_FIELD_NUMBER = 1;
@SuppressWarnings("serial")
private volatile java.lang.Object name_ = "";
/**
*
*
*
* Required. the name of the application to retrieve.
* Format:
* "projects/{project}/locations/{location}/applications/{application}"
*
*
*
* 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;
}
}
/**
*
*
*
* Required. the name of the application to retrieve.
* Format:
* "projects/{project}/locations/{location}/applications/{application}"
*
*
*
* 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;
}
}
public static final int TARGET_STREAM_INPUTS_FIELD_NUMBER = 2;
@SuppressWarnings("serial")
private java.util.List<
com.google.cloud.visionai.v1.RemoveApplicationStreamInputRequest.TargetStreamInput>
targetStreamInputs_;
/**
*
*
*
* The target stream to remove.
*
*
*
* repeated .google.cloud.visionai.v1.RemoveApplicationStreamInputRequest.TargetStreamInput target_stream_inputs = 2;
*
*/
@java.lang.Override
public java.util.List<
com.google.cloud.visionai.v1.RemoveApplicationStreamInputRequest.TargetStreamInput>
getTargetStreamInputsList() {
return targetStreamInputs_;
}
/**
*
*
*
* The target stream to remove.
*
*
*
* repeated .google.cloud.visionai.v1.RemoveApplicationStreamInputRequest.TargetStreamInput target_stream_inputs = 2;
*
*/
@java.lang.Override
public java.util.List<
? extends
com.google.cloud.visionai.v1.RemoveApplicationStreamInputRequest
.TargetStreamInputOrBuilder>
getTargetStreamInputsOrBuilderList() {
return targetStreamInputs_;
}
/**
*
*
*
* The target stream to remove.
*
*
*
* repeated .google.cloud.visionai.v1.RemoveApplicationStreamInputRequest.TargetStreamInput target_stream_inputs = 2;
*
*/
@java.lang.Override
public int getTargetStreamInputsCount() {
return targetStreamInputs_.size();
}
/**
*
*
*
* The target stream to remove.
*
*
*
* repeated .google.cloud.visionai.v1.RemoveApplicationStreamInputRequest.TargetStreamInput target_stream_inputs = 2;
*
*/
@java.lang.Override
public com.google.cloud.visionai.v1.RemoveApplicationStreamInputRequest.TargetStreamInput
getTargetStreamInputs(int index) {
return targetStreamInputs_.get(index);
}
/**
*
*
*
* The target stream to remove.
*
*
*
* repeated .google.cloud.visionai.v1.RemoveApplicationStreamInputRequest.TargetStreamInput target_stream_inputs = 2;
*
*/
@java.lang.Override
public com.google.cloud.visionai.v1.RemoveApplicationStreamInputRequest.TargetStreamInputOrBuilder
getTargetStreamInputsOrBuilder(int index) {
return targetStreamInputs_.get(index);
}
public static final int REQUEST_ID_FIELD_NUMBER = 3;
@SuppressWarnings("serial")
private volatile java.lang.Object requestId_ = "";
/**
*
*
*
* Optional. An optional request ID to identify requests. Specify a unique
* request ID so that if you must retry your request, the server will know to
* ignore the request if it has already been completed. The server will
* guarantee that for at least 60 minutes since the first request.
*
* For example, consider a situation where you make an initial request and
* the request times out. If you make the request again with the same request
* ID, the server can check if original operation with the same request ID
* was received, and if so, will ignore the second request. This prevents
* clients from accidentally creating duplicate commitments.
*
* The request ID must be a valid UUID with the exception that zero UUID is
* not supported (00000000-0000-0000-0000-000000000000).
*
*
* string request_id = 3 [(.google.api.field_behavior) = OPTIONAL];
*
* @return The requestId.
*/
@java.lang.Override
public java.lang.String getRequestId() {
java.lang.Object ref = requestId_;
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();
requestId_ = s;
return s;
}
}
/**
*
*
*
* Optional. An optional request ID to identify requests. Specify a unique
* request ID so that if you must retry your request, the server will know to
* ignore the request if it has already been completed. The server will
* guarantee that for at least 60 minutes since the first request.
*
* For example, consider a situation where you make an initial request and
* the request times out. If you make the request again with the same request
* ID, the server can check if original operation with the same request ID
* was received, and if so, will ignore the second request. This prevents
* clients from accidentally creating duplicate commitments.
*
* The request ID must be a valid UUID with the exception that zero UUID is
* not supported (00000000-0000-0000-0000-000000000000).
*
*
* string request_id = 3 [(.google.api.field_behavior) = OPTIONAL];
*
* @return The bytes for requestId.
*/
@java.lang.Override
public com.google.protobuf.ByteString getRequestIdBytes() {
java.lang.Object ref = requestId_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
requestId_ = 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_);
}
for (int i = 0; i < targetStreamInputs_.size(); i++) {
output.writeMessage(2, targetStreamInputs_.get(i));
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(requestId_)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 3, requestId_);
}
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_);
}
for (int i = 0; i < targetStreamInputs_.size(); i++) {
size +=
com.google.protobuf.CodedOutputStream.computeMessageSize(2, targetStreamInputs_.get(i));
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(requestId_)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, requestId_);
}
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.cloud.visionai.v1.RemoveApplicationStreamInputRequest)) {
return super.equals(obj);
}
com.google.cloud.visionai.v1.RemoveApplicationStreamInputRequest other =
(com.google.cloud.visionai.v1.RemoveApplicationStreamInputRequest) obj;
if (!getName().equals(other.getName())) return false;
if (!getTargetStreamInputsList().equals(other.getTargetStreamInputsList())) return false;
if (!getRequestId().equals(other.getRequestId())) 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();
if (getTargetStreamInputsCount() > 0) {
hash = (37 * hash) + TARGET_STREAM_INPUTS_FIELD_NUMBER;
hash = (53 * hash) + getTargetStreamInputsList().hashCode();
}
hash = (37 * hash) + REQUEST_ID_FIELD_NUMBER;
hash = (53 * hash) + getRequestId().hashCode();
hash = (29 * hash) + getUnknownFields().hashCode();
memoizedHashCode = hash;
return hash;
}
public static com.google.cloud.visionai.v1.RemoveApplicationStreamInputRequest parseFrom(
java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.google.cloud.visionai.v1.RemoveApplicationStreamInputRequest parseFrom(
java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.google.cloud.visionai.v1.RemoveApplicationStreamInputRequest parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.google.cloud.visionai.v1.RemoveApplicationStreamInputRequest 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.cloud.visionai.v1.RemoveApplicationStreamInputRequest parseFrom(
byte[] data) throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.google.cloud.visionai.v1.RemoveApplicationStreamInputRequest parseFrom(
byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.google.cloud.visionai.v1.RemoveApplicationStreamInputRequest parseFrom(
java.io.InputStream input) throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
}
public static com.google.cloud.visionai.v1.RemoveApplicationStreamInputRequest 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.cloud.visionai.v1.RemoveApplicationStreamInputRequest parseDelimitedFrom(
java.io.InputStream input) throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input);
}
public static com.google.cloud.visionai.v1.RemoveApplicationStreamInputRequest 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.cloud.visionai.v1.RemoveApplicationStreamInputRequest parseFrom(
com.google.protobuf.CodedInputStream input) throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
}
public static com.google.cloud.visionai.v1.RemoveApplicationStreamInputRequest 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.cloud.visionai.v1.RemoveApplicationStreamInputRequest 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;
}
/**
*
*
*
* Message for removing stream input from an Application.
*
*
* Protobuf type {@code google.cloud.visionai.v1.RemoveApplicationStreamInputRequest}
*/
public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder
implements
// @@protoc_insertion_point(builder_implements:google.cloud.visionai.v1.RemoveApplicationStreamInputRequest)
com.google.cloud.visionai.v1.RemoveApplicationStreamInputRequestOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
return com.google.cloud.visionai.v1.PlatformProto
.internal_static_google_cloud_visionai_v1_RemoveApplicationStreamInputRequest_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.google.cloud.visionai.v1.PlatformProto
.internal_static_google_cloud_visionai_v1_RemoveApplicationStreamInputRequest_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.google.cloud.visionai.v1.RemoveApplicationStreamInputRequest.class,
com.google.cloud.visionai.v1.RemoveApplicationStreamInputRequest.Builder.class);
}
// Construct using com.google.cloud.visionai.v1.RemoveApplicationStreamInputRequest.newBuilder()
private Builder() {}
private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
}
@java.lang.Override
public Builder clear() {
super.clear();
bitField0_ = 0;
name_ = "";
if (targetStreamInputsBuilder_ == null) {
targetStreamInputs_ = java.util.Collections.emptyList();
} else {
targetStreamInputs_ = null;
targetStreamInputsBuilder_.clear();
}
bitField0_ = (bitField0_ & ~0x00000002);
requestId_ = "";
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
return com.google.cloud.visionai.v1.PlatformProto
.internal_static_google_cloud_visionai_v1_RemoveApplicationStreamInputRequest_descriptor;
}
@java.lang.Override
public com.google.cloud.visionai.v1.RemoveApplicationStreamInputRequest
getDefaultInstanceForType() {
return com.google.cloud.visionai.v1.RemoveApplicationStreamInputRequest.getDefaultInstance();
}
@java.lang.Override
public com.google.cloud.visionai.v1.RemoveApplicationStreamInputRequest build() {
com.google.cloud.visionai.v1.RemoveApplicationStreamInputRequest result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public com.google.cloud.visionai.v1.RemoveApplicationStreamInputRequest buildPartial() {
com.google.cloud.visionai.v1.RemoveApplicationStreamInputRequest result =
new com.google.cloud.visionai.v1.RemoveApplicationStreamInputRequest(this);
buildPartialRepeatedFields(result);
if (bitField0_ != 0) {
buildPartial0(result);
}
onBuilt();
return result;
}
private void buildPartialRepeatedFields(
com.google.cloud.visionai.v1.RemoveApplicationStreamInputRequest result) {
if (targetStreamInputsBuilder_ == null) {
if (((bitField0_ & 0x00000002) != 0)) {
targetStreamInputs_ = java.util.Collections.unmodifiableList(targetStreamInputs_);
bitField0_ = (bitField0_ & ~0x00000002);
}
result.targetStreamInputs_ = targetStreamInputs_;
} else {
result.targetStreamInputs_ = targetStreamInputsBuilder_.build();
}
}
private void buildPartial0(
com.google.cloud.visionai.v1.RemoveApplicationStreamInputRequest result) {
int from_bitField0_ = bitField0_;
if (((from_bitField0_ & 0x00000001) != 0)) {
result.name_ = name_;
}
if (((from_bitField0_ & 0x00000004) != 0)) {
result.requestId_ = requestId_;
}
}
@java.lang.Override
public Builder clone() {
return super.clone();
}
@java.lang.Override
public Builder setField(
com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
return super.setField(field, value);
}
@java.lang.Override
public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) {
return super.clearField(field);
}
@java.lang.Override
public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) {
return super.clearOneof(oneof);
}
@java.lang.Override
public Builder setRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) {
return super.setRepeatedField(field, index, value);
}
@java.lang.Override
public Builder addRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
return super.addRepeatedField(field, value);
}
@java.lang.Override
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof com.google.cloud.visionai.v1.RemoveApplicationStreamInputRequest) {
return mergeFrom((com.google.cloud.visionai.v1.RemoveApplicationStreamInputRequest) other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(
com.google.cloud.visionai.v1.RemoveApplicationStreamInputRequest other) {
if (other
== com.google.cloud.visionai.v1.RemoveApplicationStreamInputRequest.getDefaultInstance())
return this;
if (!other.getName().isEmpty()) {
name_ = other.name_;
bitField0_ |= 0x00000001;
onChanged();
}
if (targetStreamInputsBuilder_ == null) {
if (!other.targetStreamInputs_.isEmpty()) {
if (targetStreamInputs_.isEmpty()) {
targetStreamInputs_ = other.targetStreamInputs_;
bitField0_ = (bitField0_ & ~0x00000002);
} else {
ensureTargetStreamInputsIsMutable();
targetStreamInputs_.addAll(other.targetStreamInputs_);
}
onChanged();
}
} else {
if (!other.targetStreamInputs_.isEmpty()) {
if (targetStreamInputsBuilder_.isEmpty()) {
targetStreamInputsBuilder_.dispose();
targetStreamInputsBuilder_ = null;
targetStreamInputs_ = other.targetStreamInputs_;
bitField0_ = (bitField0_ & ~0x00000002);
targetStreamInputsBuilder_ =
com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders
? getTargetStreamInputsFieldBuilder()
: null;
} else {
targetStreamInputsBuilder_.addAllMessages(other.targetStreamInputs_);
}
}
}
if (!other.getRequestId().isEmpty()) {
requestId_ = other.requestId_;
bitField0_ |= 0x00000004;
onChanged();
}
this.mergeUnknownFields(other.getUnknownFields());
onChanged();
return this;
}
@java.lang.Override
public final boolean isInitialized() {
return true;
}
@java.lang.Override
public Builder mergeFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
if (extensionRegistry == null) {
throw new java.lang.NullPointerException();
}
try {
boolean done = false;
while (!done) {
int tag = input.readTag();
switch (tag) {
case 0:
done = true;
break;
case 10:
{
name_ = input.readStringRequireUtf8();
bitField0_ |= 0x00000001;
break;
} // case 10
case 18:
{
com.google.cloud.visionai.v1.RemoveApplicationStreamInputRequest.TargetStreamInput
m =
input.readMessage(
com.google.cloud.visionai.v1.RemoveApplicationStreamInputRequest
.TargetStreamInput.parser(),
extensionRegistry);
if (targetStreamInputsBuilder_ == null) {
ensureTargetStreamInputsIsMutable();
targetStreamInputs_.add(m);
} else {
targetStreamInputsBuilder_.addMessage(m);
}
break;
} // case 18
case 26:
{
requestId_ = input.readStringRequireUtf8();
bitField0_ |= 0x00000004;
break;
} // case 26
default:
{
if (!super.parseUnknownField(input, extensionRegistry, tag)) {
done = true; // was an endgroup tag
}
break;
} // default:
} // switch (tag)
} // while (!done)
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.unwrapIOException();
} finally {
onChanged();
} // finally
return this;
}
private int bitField0_;
private java.lang.Object name_ = "";
/**
*
*
*
* Required. the name of the application to retrieve.
* Format:
* "projects/{project}/locations/{location}/applications/{application}"
*
*
*
* string 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;
}
}
/**
*
*
*
* Required. the name of the application to retrieve.
* Format:
* "projects/{project}/locations/{location}/applications/{application}"
*
*
*
* 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;
}
}
/**
*
*
*
* Required. the name of the application to retrieve.
* Format:
* "projects/{project}/locations/{location}/applications/{application}"
*
*
*
* 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;
}
/**
*
*
*
* Required. the name of the application to retrieve.
* Format:
* "projects/{project}/locations/{location}/applications/{application}"
*
*
*
* 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;
}
/**
*
*
*
* Required. the name of the application to retrieve.
* Format:
* "projects/{project}/locations/{location}/applications/{application}"
*
*
*
* 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;
}
private java.util.List<
com.google.cloud.visionai.v1.RemoveApplicationStreamInputRequest.TargetStreamInput>
targetStreamInputs_ = java.util.Collections.emptyList();
private void ensureTargetStreamInputsIsMutable() {
if (!((bitField0_ & 0x00000002) != 0)) {
targetStreamInputs_ =
new java.util.ArrayList<
com.google.cloud.visionai.v1.RemoveApplicationStreamInputRequest.TargetStreamInput>(
targetStreamInputs_);
bitField0_ |= 0x00000002;
}
}
private com.google.protobuf.RepeatedFieldBuilderV3<
com.google.cloud.visionai.v1.RemoveApplicationStreamInputRequest.TargetStreamInput,
com.google.cloud.visionai.v1.RemoveApplicationStreamInputRequest.TargetStreamInput
.Builder,
com.google.cloud.visionai.v1.RemoveApplicationStreamInputRequest
.TargetStreamInputOrBuilder>
targetStreamInputsBuilder_;
/**
*
*
*
* The target stream to remove.
*
*
*
* repeated .google.cloud.visionai.v1.RemoveApplicationStreamInputRequest.TargetStreamInput target_stream_inputs = 2;
*
*/
public java.util.List<
com.google.cloud.visionai.v1.RemoveApplicationStreamInputRequest.TargetStreamInput>
getTargetStreamInputsList() {
if (targetStreamInputsBuilder_ == null) {
return java.util.Collections.unmodifiableList(targetStreamInputs_);
} else {
return targetStreamInputsBuilder_.getMessageList();
}
}
/**
*
*
*
* The target stream to remove.
*
*
*
* repeated .google.cloud.visionai.v1.RemoveApplicationStreamInputRequest.TargetStreamInput target_stream_inputs = 2;
*
*/
public int getTargetStreamInputsCount() {
if (targetStreamInputsBuilder_ == null) {
return targetStreamInputs_.size();
} else {
return targetStreamInputsBuilder_.getCount();
}
}
/**
*
*
*
* The target stream to remove.
*
*
*
* repeated .google.cloud.visionai.v1.RemoveApplicationStreamInputRequest.TargetStreamInput target_stream_inputs = 2;
*
*/
public com.google.cloud.visionai.v1.RemoveApplicationStreamInputRequest.TargetStreamInput
getTargetStreamInputs(int index) {
if (targetStreamInputsBuilder_ == null) {
return targetStreamInputs_.get(index);
} else {
return targetStreamInputsBuilder_.getMessage(index);
}
}
/**
*
*
*
* The target stream to remove.
*
*
*
* repeated .google.cloud.visionai.v1.RemoveApplicationStreamInputRequest.TargetStreamInput target_stream_inputs = 2;
*
*/
public Builder setTargetStreamInputs(
int index,
com.google.cloud.visionai.v1.RemoveApplicationStreamInputRequest.TargetStreamInput value) {
if (targetStreamInputsBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureTargetStreamInputsIsMutable();
targetStreamInputs_.set(index, value);
onChanged();
} else {
targetStreamInputsBuilder_.setMessage(index, value);
}
return this;
}
/**
*
*
*
* The target stream to remove.
*
*
*
* repeated .google.cloud.visionai.v1.RemoveApplicationStreamInputRequest.TargetStreamInput target_stream_inputs = 2;
*
*/
public Builder setTargetStreamInputs(
int index,
com.google.cloud.visionai.v1.RemoveApplicationStreamInputRequest.TargetStreamInput.Builder
builderForValue) {
if (targetStreamInputsBuilder_ == null) {
ensureTargetStreamInputsIsMutable();
targetStreamInputs_.set(index, builderForValue.build());
onChanged();
} else {
targetStreamInputsBuilder_.setMessage(index, builderForValue.build());
}
return this;
}
/**
*
*
*
* The target stream to remove.
*
*
*
* repeated .google.cloud.visionai.v1.RemoveApplicationStreamInputRequest.TargetStreamInput target_stream_inputs = 2;
*
*/
public Builder addTargetStreamInputs(
com.google.cloud.visionai.v1.RemoveApplicationStreamInputRequest.TargetStreamInput value) {
if (targetStreamInputsBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureTargetStreamInputsIsMutable();
targetStreamInputs_.add(value);
onChanged();
} else {
targetStreamInputsBuilder_.addMessage(value);
}
return this;
}
/**
*
*
*
* The target stream to remove.
*
*
*
* repeated .google.cloud.visionai.v1.RemoveApplicationStreamInputRequest.TargetStreamInput target_stream_inputs = 2;
*
*/
public Builder addTargetStreamInputs(
int index,
com.google.cloud.visionai.v1.RemoveApplicationStreamInputRequest.TargetStreamInput value) {
if (targetStreamInputsBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureTargetStreamInputsIsMutable();
targetStreamInputs_.add(index, value);
onChanged();
} else {
targetStreamInputsBuilder_.addMessage(index, value);
}
return this;
}
/**
*
*
*
* The target stream to remove.
*
*
*
* repeated .google.cloud.visionai.v1.RemoveApplicationStreamInputRequest.TargetStreamInput target_stream_inputs = 2;
*
*/
public Builder addTargetStreamInputs(
com.google.cloud.visionai.v1.RemoveApplicationStreamInputRequest.TargetStreamInput.Builder
builderForValue) {
if (targetStreamInputsBuilder_ == null) {
ensureTargetStreamInputsIsMutable();
targetStreamInputs_.add(builderForValue.build());
onChanged();
} else {
targetStreamInputsBuilder_.addMessage(builderForValue.build());
}
return this;
}
/**
*
*
*
* The target stream to remove.
*
*
*
* repeated .google.cloud.visionai.v1.RemoveApplicationStreamInputRequest.TargetStreamInput target_stream_inputs = 2;
*
*/
public Builder addTargetStreamInputs(
int index,
com.google.cloud.visionai.v1.RemoveApplicationStreamInputRequest.TargetStreamInput.Builder
builderForValue) {
if (targetStreamInputsBuilder_ == null) {
ensureTargetStreamInputsIsMutable();
targetStreamInputs_.add(index, builderForValue.build());
onChanged();
} else {
targetStreamInputsBuilder_.addMessage(index, builderForValue.build());
}
return this;
}
/**
*
*
*
* The target stream to remove.
*
*
*
* repeated .google.cloud.visionai.v1.RemoveApplicationStreamInputRequest.TargetStreamInput target_stream_inputs = 2;
*
*/
public Builder addAllTargetStreamInputs(
java.lang.Iterable<
? extends
com.google.cloud.visionai.v1.RemoveApplicationStreamInputRequest
.TargetStreamInput>
values) {
if (targetStreamInputsBuilder_ == null) {
ensureTargetStreamInputsIsMutable();
com.google.protobuf.AbstractMessageLite.Builder.addAll(values, targetStreamInputs_);
onChanged();
} else {
targetStreamInputsBuilder_.addAllMessages(values);
}
return this;
}
/**
*
*
*
* The target stream to remove.
*
*
*
* repeated .google.cloud.visionai.v1.RemoveApplicationStreamInputRequest.TargetStreamInput target_stream_inputs = 2;
*
*/
public Builder clearTargetStreamInputs() {
if (targetStreamInputsBuilder_ == null) {
targetStreamInputs_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000002);
onChanged();
} else {
targetStreamInputsBuilder_.clear();
}
return this;
}
/**
*
*
*
* The target stream to remove.
*
*
*
* repeated .google.cloud.visionai.v1.RemoveApplicationStreamInputRequest.TargetStreamInput target_stream_inputs = 2;
*
*/
public Builder removeTargetStreamInputs(int index) {
if (targetStreamInputsBuilder_ == null) {
ensureTargetStreamInputsIsMutable();
targetStreamInputs_.remove(index);
onChanged();
} else {
targetStreamInputsBuilder_.remove(index);
}
return this;
}
/**
*
*
*
* The target stream to remove.
*
*
*
* repeated .google.cloud.visionai.v1.RemoveApplicationStreamInputRequest.TargetStreamInput target_stream_inputs = 2;
*
*/
public com.google.cloud.visionai.v1.RemoveApplicationStreamInputRequest.TargetStreamInput
.Builder
getTargetStreamInputsBuilder(int index) {
return getTargetStreamInputsFieldBuilder().getBuilder(index);
}
/**
*
*
*
* The target stream to remove.
*
*
*
* repeated .google.cloud.visionai.v1.RemoveApplicationStreamInputRequest.TargetStreamInput target_stream_inputs = 2;
*
*/
public com.google.cloud.visionai.v1.RemoveApplicationStreamInputRequest
.TargetStreamInputOrBuilder
getTargetStreamInputsOrBuilder(int index) {
if (targetStreamInputsBuilder_ == null) {
return targetStreamInputs_.get(index);
} else {
return targetStreamInputsBuilder_.getMessageOrBuilder(index);
}
}
/**
*
*
*
* The target stream to remove.
*
*
*
* repeated .google.cloud.visionai.v1.RemoveApplicationStreamInputRequest.TargetStreamInput target_stream_inputs = 2;
*
*/
public java.util.List<
? extends
com.google.cloud.visionai.v1.RemoveApplicationStreamInputRequest
.TargetStreamInputOrBuilder>
getTargetStreamInputsOrBuilderList() {
if (targetStreamInputsBuilder_ != null) {
return targetStreamInputsBuilder_.getMessageOrBuilderList();
} else {
return java.util.Collections.unmodifiableList(targetStreamInputs_);
}
}
/**
*
*
*
* The target stream to remove.
*
*
*
* repeated .google.cloud.visionai.v1.RemoveApplicationStreamInputRequest.TargetStreamInput target_stream_inputs = 2;
*
*/
public com.google.cloud.visionai.v1.RemoveApplicationStreamInputRequest.TargetStreamInput
.Builder
addTargetStreamInputsBuilder() {
return getTargetStreamInputsFieldBuilder()
.addBuilder(
com.google.cloud.visionai.v1.RemoveApplicationStreamInputRequest.TargetStreamInput
.getDefaultInstance());
}
/**
*
*
*
* The target stream to remove.
*
*
*
* repeated .google.cloud.visionai.v1.RemoveApplicationStreamInputRequest.TargetStreamInput target_stream_inputs = 2;
*
*/
public com.google.cloud.visionai.v1.RemoveApplicationStreamInputRequest.TargetStreamInput
.Builder
addTargetStreamInputsBuilder(int index) {
return getTargetStreamInputsFieldBuilder()
.addBuilder(
index,
com.google.cloud.visionai.v1.RemoveApplicationStreamInputRequest.TargetStreamInput
.getDefaultInstance());
}
/**
*
*
*
* The target stream to remove.
*
*
*
* repeated .google.cloud.visionai.v1.RemoveApplicationStreamInputRequest.TargetStreamInput target_stream_inputs = 2;
*
*/
public java.util.List<
com.google.cloud.visionai.v1.RemoveApplicationStreamInputRequest.TargetStreamInput
.Builder>
getTargetStreamInputsBuilderList() {
return getTargetStreamInputsFieldBuilder().getBuilderList();
}
private com.google.protobuf.RepeatedFieldBuilderV3<
com.google.cloud.visionai.v1.RemoveApplicationStreamInputRequest.TargetStreamInput,
com.google.cloud.visionai.v1.RemoveApplicationStreamInputRequest.TargetStreamInput
.Builder,
com.google.cloud.visionai.v1.RemoveApplicationStreamInputRequest
.TargetStreamInputOrBuilder>
getTargetStreamInputsFieldBuilder() {
if (targetStreamInputsBuilder_ == null) {
targetStreamInputsBuilder_ =
new com.google.protobuf.RepeatedFieldBuilderV3<
com.google.cloud.visionai.v1.RemoveApplicationStreamInputRequest.TargetStreamInput,
com.google.cloud.visionai.v1.RemoveApplicationStreamInputRequest.TargetStreamInput
.Builder,
com.google.cloud.visionai.v1.RemoveApplicationStreamInputRequest
.TargetStreamInputOrBuilder>(
targetStreamInputs_,
((bitField0_ & 0x00000002) != 0),
getParentForChildren(),
isClean());
targetStreamInputs_ = null;
}
return targetStreamInputsBuilder_;
}
private java.lang.Object requestId_ = "";
/**
*
*
*
* Optional. An optional request ID to identify requests. Specify a unique
* request ID so that if you must retry your request, the server will know to
* ignore the request if it has already been completed. The server will
* guarantee that for at least 60 minutes since the first request.
*
* For example, consider a situation where you make an initial request and
* the request times out. If you make the request again with the same request
* ID, the server can check if original operation with the same request ID
* was received, and if so, will ignore the second request. This prevents
* clients from accidentally creating duplicate commitments.
*
* The request ID must be a valid UUID with the exception that zero UUID is
* not supported (00000000-0000-0000-0000-000000000000).
*
*
* string request_id = 3 [(.google.api.field_behavior) = OPTIONAL];
*
* @return The requestId.
*/
public java.lang.String getRequestId() {
java.lang.Object ref = requestId_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
requestId_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
*
*
*
* Optional. An optional request ID to identify requests. Specify a unique
* request ID so that if you must retry your request, the server will know to
* ignore the request if it has already been completed. The server will
* guarantee that for at least 60 minutes since the first request.
*
* For example, consider a situation where you make an initial request and
* the request times out. If you make the request again with the same request
* ID, the server can check if original operation with the same request ID
* was received, and if so, will ignore the second request. This prevents
* clients from accidentally creating duplicate commitments.
*
* The request ID must be a valid UUID with the exception that zero UUID is
* not supported (00000000-0000-0000-0000-000000000000).
*
*
* string request_id = 3 [(.google.api.field_behavior) = OPTIONAL];
*
* @return The bytes for requestId.
*/
public com.google.protobuf.ByteString getRequestIdBytes() {
java.lang.Object ref = requestId_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
requestId_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
*
*
*
* Optional. An optional request ID to identify requests. Specify a unique
* request ID so that if you must retry your request, the server will know to
* ignore the request if it has already been completed. The server will
* guarantee that for at least 60 minutes since the first request.
*
* For example, consider a situation where you make an initial request and
* the request times out. If you make the request again with the same request
* ID, the server can check if original operation with the same request ID
* was received, and if so, will ignore the second request. This prevents
* clients from accidentally creating duplicate commitments.
*
* The request ID must be a valid UUID with the exception that zero UUID is
* not supported (00000000-0000-0000-0000-000000000000).
*
*
* string request_id = 3 [(.google.api.field_behavior) = OPTIONAL];
*
* @param value The requestId to set.
* @return This builder for chaining.
*/
public Builder setRequestId(java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
requestId_ = value;
bitField0_ |= 0x00000004;
onChanged();
return this;
}
/**
*
*
*
* Optional. An optional request ID to identify requests. Specify a unique
* request ID so that if you must retry your request, the server will know to
* ignore the request if it has already been completed. The server will
* guarantee that for at least 60 minutes since the first request.
*
* For example, consider a situation where you make an initial request and
* the request times out. If you make the request again with the same request
* ID, the server can check if original operation with the same request ID
* was received, and if so, will ignore the second request. This prevents
* clients from accidentally creating duplicate commitments.
*
* The request ID must be a valid UUID with the exception that zero UUID is
* not supported (00000000-0000-0000-0000-000000000000).
*
*
* string request_id = 3 [(.google.api.field_behavior) = OPTIONAL];
*
* @return This builder for chaining.
*/
public Builder clearRequestId() {
requestId_ = getDefaultInstance().getRequestId();
bitField0_ = (bitField0_ & ~0x00000004);
onChanged();
return this;
}
/**
*
*
*
* Optional. An optional request ID to identify requests. Specify a unique
* request ID so that if you must retry your request, the server will know to
* ignore the request if it has already been completed. The server will
* guarantee that for at least 60 minutes since the first request.
*
* For example, consider a situation where you make an initial request and
* the request times out. If you make the request again with the same request
* ID, the server can check if original operation with the same request ID
* was received, and if so, will ignore the second request. This prevents
* clients from accidentally creating duplicate commitments.
*
* The request ID must be a valid UUID with the exception that zero UUID is
* not supported (00000000-0000-0000-0000-000000000000).
*
*
* string request_id = 3 [(.google.api.field_behavior) = OPTIONAL];
*
* @param value The bytes for requestId to set.
* @return This builder for chaining.
*/
public Builder setRequestIdBytes(com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
requestId_ = value;
bitField0_ |= 0x00000004;
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.cloud.visionai.v1.RemoveApplicationStreamInputRequest)
}
// @@protoc_insertion_point(class_scope:google.cloud.visionai.v1.RemoveApplicationStreamInputRequest)
private static final com.google.cloud.visionai.v1.RemoveApplicationStreamInputRequest
DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new com.google.cloud.visionai.v1.RemoveApplicationStreamInputRequest();
}
public static com.google.cloud.visionai.v1.RemoveApplicationStreamInputRequest
getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser PARSER =
new com.google.protobuf.AbstractParser() {
@java.lang.Override
public RemoveApplicationStreamInputRequest parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
Builder builder = newBuilder();
try {
builder.mergeFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.setUnfinishedMessage(builder.buildPartial());
} catch (com.google.protobuf.UninitializedMessageException e) {
throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial());
} catch (java.io.IOException e) {
throw new com.google.protobuf.InvalidProtocolBufferException(e)
.setUnfinishedMessage(builder.buildPartial());
}
return builder.buildPartial();
}
};
public static com.google.protobuf.Parser parser() {
return PARSER;
}
@java.lang.Override
public com.google.protobuf.Parser getParserForType() {
return PARSER;
}
@java.lang.Override
public com.google.cloud.visionai.v1.RemoveApplicationStreamInputRequest
getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy