com.google.cloud.datastream.v1.StreamObject Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of proto-google-cloud-datastream-v1 Show documentation
Show all versions of proto-google-cloud-datastream-v1 Show documentation
Proto library for google-cloud-datastream
/*
* 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/datastream/v1/datastream_resources.proto
// Protobuf Java Version: 3.25.3
package com.google.cloud.datastream.v1;
/**
*
*
*
* A specific stream object (e.g a specific DB table).
*
*
* Protobuf type {@code google.cloud.datastream.v1.StreamObject}
*/
public final class StreamObject extends com.google.protobuf.GeneratedMessageV3
implements
// @@protoc_insertion_point(message_implements:google.cloud.datastream.v1.StreamObject)
StreamObjectOrBuilder {
private static final long serialVersionUID = 0L;
// Use StreamObject.newBuilder() to construct.
private StreamObject(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private StreamObject() {
name_ = "";
displayName_ = "";
errors_ = java.util.Collections.emptyList();
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
return new StreamObject();
}
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
return com.google.cloud.datastream.v1.DatastreamResourcesProto
.internal_static_google_cloud_datastream_v1_StreamObject_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.google.cloud.datastream.v1.DatastreamResourcesProto
.internal_static_google_cloud_datastream_v1_StreamObject_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.google.cloud.datastream.v1.StreamObject.class,
com.google.cloud.datastream.v1.StreamObject.Builder.class);
}
private int bitField0_;
public static final int NAME_FIELD_NUMBER = 1;
@SuppressWarnings("serial")
private volatile java.lang.Object name_ = "";
/**
*
*
*
* Output only. The object resource's name.
*
*
* string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
*
* @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;
}
}
/**
*
*
*
* Output only. The object resource's name.
*
*
* string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
*
* @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 CREATE_TIME_FIELD_NUMBER = 2;
private com.google.protobuf.Timestamp createTime_;
/**
*
*
*
* Output only. The creation time of the object.
*
*
* .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
*
*
* @return Whether the createTime field is set.
*/
@java.lang.Override
public boolean hasCreateTime() {
return ((bitField0_ & 0x00000001) != 0);
}
/**
*
*
*
* Output only. The creation time of the object.
*
*
* .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
*
*
* @return The createTime.
*/
@java.lang.Override
public com.google.protobuf.Timestamp getCreateTime() {
return createTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : createTime_;
}
/**
*
*
*
* Output only. The creation time of the object.
*
*
* .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
*
*/
@java.lang.Override
public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() {
return createTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : createTime_;
}
public static final int UPDATE_TIME_FIELD_NUMBER = 3;
private com.google.protobuf.Timestamp updateTime_;
/**
*
*
*
* Output only. The last update time of the object.
*
*
* .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
*
*
* @return Whether the updateTime field is set.
*/
@java.lang.Override
public boolean hasUpdateTime() {
return ((bitField0_ & 0x00000002) != 0);
}
/**
*
*
*
* Output only. The last update time of the object.
*
*
* .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
*
*
* @return The updateTime.
*/
@java.lang.Override
public com.google.protobuf.Timestamp getUpdateTime() {
return updateTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : updateTime_;
}
/**
*
*
*
* Output only. The last update time of the object.
*
*
* .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
*
*/
@java.lang.Override
public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder() {
return updateTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : updateTime_;
}
public static final int DISPLAY_NAME_FIELD_NUMBER = 5;
@SuppressWarnings("serial")
private volatile java.lang.Object displayName_ = "";
/**
*
*
*
* Required. Display name.
*
*
* string display_name = 5 [(.google.api.field_behavior) = REQUIRED];
*
* @return The displayName.
*/
@java.lang.Override
public java.lang.String getDisplayName() {
java.lang.Object ref = displayName_;
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();
displayName_ = s;
return s;
}
}
/**
*
*
*
* Required. Display name.
*
*
* string display_name = 5 [(.google.api.field_behavior) = REQUIRED];
*
* @return The bytes for displayName.
*/
@java.lang.Override
public com.google.protobuf.ByteString getDisplayNameBytes() {
java.lang.Object ref = displayName_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
displayName_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int ERRORS_FIELD_NUMBER = 6;
@SuppressWarnings("serial")
private java.util.List errors_;
/**
*
*
*
* Output only. Active errors on the object.
*
*
*
* repeated .google.cloud.datastream.v1.Error errors = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];
*
*/
@java.lang.Override
public java.util.List getErrorsList() {
return errors_;
}
/**
*
*
*
* Output only. Active errors on the object.
*
*
*
* repeated .google.cloud.datastream.v1.Error errors = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];
*
*/
@java.lang.Override
public java.util.List extends com.google.cloud.datastream.v1.ErrorOrBuilder>
getErrorsOrBuilderList() {
return errors_;
}
/**
*
*
*
* Output only. Active errors on the object.
*
*
*
* repeated .google.cloud.datastream.v1.Error errors = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];
*
*/
@java.lang.Override
public int getErrorsCount() {
return errors_.size();
}
/**
*
*
*
* Output only. Active errors on the object.
*
*
*
* repeated .google.cloud.datastream.v1.Error errors = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];
*
*/
@java.lang.Override
public com.google.cloud.datastream.v1.Error getErrors(int index) {
return errors_.get(index);
}
/**
*
*
*
* Output only. Active errors on the object.
*
*
*
* repeated .google.cloud.datastream.v1.Error errors = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];
*
*/
@java.lang.Override
public com.google.cloud.datastream.v1.ErrorOrBuilder getErrorsOrBuilder(int index) {
return errors_.get(index);
}
public static final int BACKFILL_JOB_FIELD_NUMBER = 7;
private com.google.cloud.datastream.v1.BackfillJob backfillJob_;
/**
*
*
*
* The latest backfill job that was initiated for the stream object.
*
*
* .google.cloud.datastream.v1.BackfillJob backfill_job = 7;
*
* @return Whether the backfillJob field is set.
*/
@java.lang.Override
public boolean hasBackfillJob() {
return ((bitField0_ & 0x00000004) != 0);
}
/**
*
*
*
* The latest backfill job that was initiated for the stream object.
*
*
* .google.cloud.datastream.v1.BackfillJob backfill_job = 7;
*
* @return The backfillJob.
*/
@java.lang.Override
public com.google.cloud.datastream.v1.BackfillJob getBackfillJob() {
return backfillJob_ == null
? com.google.cloud.datastream.v1.BackfillJob.getDefaultInstance()
: backfillJob_;
}
/**
*
*
*
* The latest backfill job that was initiated for the stream object.
*
*
* .google.cloud.datastream.v1.BackfillJob backfill_job = 7;
*/
@java.lang.Override
public com.google.cloud.datastream.v1.BackfillJobOrBuilder getBackfillJobOrBuilder() {
return backfillJob_ == null
? com.google.cloud.datastream.v1.BackfillJob.getDefaultInstance()
: backfillJob_;
}
public static final int SOURCE_OBJECT_FIELD_NUMBER = 8;
private com.google.cloud.datastream.v1.SourceObjectIdentifier sourceObject_;
/**
*
*
*
* The object identifier in the data source.
*
*
* .google.cloud.datastream.v1.SourceObjectIdentifier source_object = 8;
*
* @return Whether the sourceObject field is set.
*/
@java.lang.Override
public boolean hasSourceObject() {
return ((bitField0_ & 0x00000008) != 0);
}
/**
*
*
*
* The object identifier in the data source.
*
*
* .google.cloud.datastream.v1.SourceObjectIdentifier source_object = 8;
*
* @return The sourceObject.
*/
@java.lang.Override
public com.google.cloud.datastream.v1.SourceObjectIdentifier getSourceObject() {
return sourceObject_ == null
? com.google.cloud.datastream.v1.SourceObjectIdentifier.getDefaultInstance()
: sourceObject_;
}
/**
*
*
*
* The object identifier in the data source.
*
*
* .google.cloud.datastream.v1.SourceObjectIdentifier source_object = 8;
*/
@java.lang.Override
public com.google.cloud.datastream.v1.SourceObjectIdentifierOrBuilder getSourceObjectOrBuilder() {
return sourceObject_ == null
? com.google.cloud.datastream.v1.SourceObjectIdentifier.getDefaultInstance()
: sourceObject_;
}
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_);
}
if (((bitField0_ & 0x00000001) != 0)) {
output.writeMessage(2, getCreateTime());
}
if (((bitField0_ & 0x00000002) != 0)) {
output.writeMessage(3, getUpdateTime());
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(displayName_)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 5, displayName_);
}
for (int i = 0; i < errors_.size(); i++) {
output.writeMessage(6, errors_.get(i));
}
if (((bitField0_ & 0x00000004) != 0)) {
output.writeMessage(7, getBackfillJob());
}
if (((bitField0_ & 0x00000008) != 0)) {
output.writeMessage(8, getSourceObject());
}
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_);
}
if (((bitField0_ & 0x00000001) != 0)) {
size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getCreateTime());
}
if (((bitField0_ & 0x00000002) != 0)) {
size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, getUpdateTime());
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(displayName_)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(5, displayName_);
}
for (int i = 0; i < errors_.size(); i++) {
size += com.google.protobuf.CodedOutputStream.computeMessageSize(6, errors_.get(i));
}
if (((bitField0_ & 0x00000004) != 0)) {
size += com.google.protobuf.CodedOutputStream.computeMessageSize(7, getBackfillJob());
}
if (((bitField0_ & 0x00000008) != 0)) {
size += com.google.protobuf.CodedOutputStream.computeMessageSize(8, getSourceObject());
}
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.datastream.v1.StreamObject)) {
return super.equals(obj);
}
com.google.cloud.datastream.v1.StreamObject other =
(com.google.cloud.datastream.v1.StreamObject) obj;
if (!getName().equals(other.getName())) return false;
if (hasCreateTime() != other.hasCreateTime()) return false;
if (hasCreateTime()) {
if (!getCreateTime().equals(other.getCreateTime())) return false;
}
if (hasUpdateTime() != other.hasUpdateTime()) return false;
if (hasUpdateTime()) {
if (!getUpdateTime().equals(other.getUpdateTime())) return false;
}
if (!getDisplayName().equals(other.getDisplayName())) return false;
if (!getErrorsList().equals(other.getErrorsList())) return false;
if (hasBackfillJob() != other.hasBackfillJob()) return false;
if (hasBackfillJob()) {
if (!getBackfillJob().equals(other.getBackfillJob())) return false;
}
if (hasSourceObject() != other.hasSourceObject()) return false;
if (hasSourceObject()) {
if (!getSourceObject().equals(other.getSourceObject())) 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 (hasCreateTime()) {
hash = (37 * hash) + CREATE_TIME_FIELD_NUMBER;
hash = (53 * hash) + getCreateTime().hashCode();
}
if (hasUpdateTime()) {
hash = (37 * hash) + UPDATE_TIME_FIELD_NUMBER;
hash = (53 * hash) + getUpdateTime().hashCode();
}
hash = (37 * hash) + DISPLAY_NAME_FIELD_NUMBER;
hash = (53 * hash) + getDisplayName().hashCode();
if (getErrorsCount() > 0) {
hash = (37 * hash) + ERRORS_FIELD_NUMBER;
hash = (53 * hash) + getErrorsList().hashCode();
}
if (hasBackfillJob()) {
hash = (37 * hash) + BACKFILL_JOB_FIELD_NUMBER;
hash = (53 * hash) + getBackfillJob().hashCode();
}
if (hasSourceObject()) {
hash = (37 * hash) + SOURCE_OBJECT_FIELD_NUMBER;
hash = (53 * hash) + getSourceObject().hashCode();
}
hash = (29 * hash) + getUnknownFields().hashCode();
memoizedHashCode = hash;
return hash;
}
public static com.google.cloud.datastream.v1.StreamObject parseFrom(java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.google.cloud.datastream.v1.StreamObject 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.datastream.v1.StreamObject parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.google.cloud.datastream.v1.StreamObject 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.datastream.v1.StreamObject parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.google.cloud.datastream.v1.StreamObject parseFrom(
byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.google.cloud.datastream.v1.StreamObject parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
}
public static com.google.cloud.datastream.v1.StreamObject 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.datastream.v1.StreamObject parseDelimitedFrom(
java.io.InputStream input) throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input);
}
public static com.google.cloud.datastream.v1.StreamObject 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.datastream.v1.StreamObject parseFrom(
com.google.protobuf.CodedInputStream input) throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
}
public static com.google.cloud.datastream.v1.StreamObject 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.datastream.v1.StreamObject 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 specific stream object (e.g a specific DB table).
*
*
* Protobuf type {@code google.cloud.datastream.v1.StreamObject}
*/
public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder
implements
// @@protoc_insertion_point(builder_implements:google.cloud.datastream.v1.StreamObject)
com.google.cloud.datastream.v1.StreamObjectOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
return com.google.cloud.datastream.v1.DatastreamResourcesProto
.internal_static_google_cloud_datastream_v1_StreamObject_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.google.cloud.datastream.v1.DatastreamResourcesProto
.internal_static_google_cloud_datastream_v1_StreamObject_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.google.cloud.datastream.v1.StreamObject.class,
com.google.cloud.datastream.v1.StreamObject.Builder.class);
}
// Construct using com.google.cloud.datastream.v1.StreamObject.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {
getCreateTimeFieldBuilder();
getUpdateTimeFieldBuilder();
getErrorsFieldBuilder();
getBackfillJobFieldBuilder();
getSourceObjectFieldBuilder();
}
}
@java.lang.Override
public Builder clear() {
super.clear();
bitField0_ = 0;
name_ = "";
createTime_ = null;
if (createTimeBuilder_ != null) {
createTimeBuilder_.dispose();
createTimeBuilder_ = null;
}
updateTime_ = null;
if (updateTimeBuilder_ != null) {
updateTimeBuilder_.dispose();
updateTimeBuilder_ = null;
}
displayName_ = "";
if (errorsBuilder_ == null) {
errors_ = java.util.Collections.emptyList();
} else {
errors_ = null;
errorsBuilder_.clear();
}
bitField0_ = (bitField0_ & ~0x00000010);
backfillJob_ = null;
if (backfillJobBuilder_ != null) {
backfillJobBuilder_.dispose();
backfillJobBuilder_ = null;
}
sourceObject_ = null;
if (sourceObjectBuilder_ != null) {
sourceObjectBuilder_.dispose();
sourceObjectBuilder_ = null;
}
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
return com.google.cloud.datastream.v1.DatastreamResourcesProto
.internal_static_google_cloud_datastream_v1_StreamObject_descriptor;
}
@java.lang.Override
public com.google.cloud.datastream.v1.StreamObject getDefaultInstanceForType() {
return com.google.cloud.datastream.v1.StreamObject.getDefaultInstance();
}
@java.lang.Override
public com.google.cloud.datastream.v1.StreamObject build() {
com.google.cloud.datastream.v1.StreamObject result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public com.google.cloud.datastream.v1.StreamObject buildPartial() {
com.google.cloud.datastream.v1.StreamObject result =
new com.google.cloud.datastream.v1.StreamObject(this);
buildPartialRepeatedFields(result);
if (bitField0_ != 0) {
buildPartial0(result);
}
onBuilt();
return result;
}
private void buildPartialRepeatedFields(com.google.cloud.datastream.v1.StreamObject result) {
if (errorsBuilder_ == null) {
if (((bitField0_ & 0x00000010) != 0)) {
errors_ = java.util.Collections.unmodifiableList(errors_);
bitField0_ = (bitField0_ & ~0x00000010);
}
result.errors_ = errors_;
} else {
result.errors_ = errorsBuilder_.build();
}
}
private void buildPartial0(com.google.cloud.datastream.v1.StreamObject result) {
int from_bitField0_ = bitField0_;
if (((from_bitField0_ & 0x00000001) != 0)) {
result.name_ = name_;
}
int to_bitField0_ = 0;
if (((from_bitField0_ & 0x00000002) != 0)) {
result.createTime_ = createTimeBuilder_ == null ? createTime_ : createTimeBuilder_.build();
to_bitField0_ |= 0x00000001;
}
if (((from_bitField0_ & 0x00000004) != 0)) {
result.updateTime_ = updateTimeBuilder_ == null ? updateTime_ : updateTimeBuilder_.build();
to_bitField0_ |= 0x00000002;
}
if (((from_bitField0_ & 0x00000008) != 0)) {
result.displayName_ = displayName_;
}
if (((from_bitField0_ & 0x00000020) != 0)) {
result.backfillJob_ =
backfillJobBuilder_ == null ? backfillJob_ : backfillJobBuilder_.build();
to_bitField0_ |= 0x00000004;
}
if (((from_bitField0_ & 0x00000040) != 0)) {
result.sourceObject_ =
sourceObjectBuilder_ == null ? sourceObject_ : sourceObjectBuilder_.build();
to_bitField0_ |= 0x00000008;
}
result.bitField0_ |= to_bitField0_;
}
@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.datastream.v1.StreamObject) {
return mergeFrom((com.google.cloud.datastream.v1.StreamObject) other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(com.google.cloud.datastream.v1.StreamObject other) {
if (other == com.google.cloud.datastream.v1.StreamObject.getDefaultInstance()) return this;
if (!other.getName().isEmpty()) {
name_ = other.name_;
bitField0_ |= 0x00000001;
onChanged();
}
if (other.hasCreateTime()) {
mergeCreateTime(other.getCreateTime());
}
if (other.hasUpdateTime()) {
mergeUpdateTime(other.getUpdateTime());
}
if (!other.getDisplayName().isEmpty()) {
displayName_ = other.displayName_;
bitField0_ |= 0x00000008;
onChanged();
}
if (errorsBuilder_ == null) {
if (!other.errors_.isEmpty()) {
if (errors_.isEmpty()) {
errors_ = other.errors_;
bitField0_ = (bitField0_ & ~0x00000010);
} else {
ensureErrorsIsMutable();
errors_.addAll(other.errors_);
}
onChanged();
}
} else {
if (!other.errors_.isEmpty()) {
if (errorsBuilder_.isEmpty()) {
errorsBuilder_.dispose();
errorsBuilder_ = null;
errors_ = other.errors_;
bitField0_ = (bitField0_ & ~0x00000010);
errorsBuilder_ =
com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders
? getErrorsFieldBuilder()
: null;
} else {
errorsBuilder_.addAllMessages(other.errors_);
}
}
}
if (other.hasBackfillJob()) {
mergeBackfillJob(other.getBackfillJob());
}
if (other.hasSourceObject()) {
mergeSourceObject(other.getSourceObject());
}
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:
{
input.readMessage(getCreateTimeFieldBuilder().getBuilder(), extensionRegistry);
bitField0_ |= 0x00000002;
break;
} // case 18
case 26:
{
input.readMessage(getUpdateTimeFieldBuilder().getBuilder(), extensionRegistry);
bitField0_ |= 0x00000004;
break;
} // case 26
case 42:
{
displayName_ = input.readStringRequireUtf8();
bitField0_ |= 0x00000008;
break;
} // case 42
case 50:
{
com.google.cloud.datastream.v1.Error m =
input.readMessage(
com.google.cloud.datastream.v1.Error.parser(), extensionRegistry);
if (errorsBuilder_ == null) {
ensureErrorsIsMutable();
errors_.add(m);
} else {
errorsBuilder_.addMessage(m);
}
break;
} // case 50
case 58:
{
input.readMessage(getBackfillJobFieldBuilder().getBuilder(), extensionRegistry);
bitField0_ |= 0x00000020;
break;
} // case 58
case 66:
{
input.readMessage(getSourceObjectFieldBuilder().getBuilder(), extensionRegistry);
bitField0_ |= 0x00000040;
break;
} // case 66
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_ = "";
/**
*
*
*
* Output only. The object resource's name.
*
*
* string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
*
* @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;
}
}
/**
*
*
*
* Output only. The object resource's name.
*
*
* string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
*
* @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;
}
}
/**
*
*
*
* Output only. The object resource's name.
*
*
* string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
*
* @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;
}
/**
*
*
*
* Output only. The object resource's name.
*
*
* string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
*
* @return This builder for chaining.
*/
public Builder clearName() {
name_ = getDefaultInstance().getName();
bitField0_ = (bitField0_ & ~0x00000001);
onChanged();
return this;
}
/**
*
*
*
* Output only. The object resource's name.
*
*
* string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
*
* @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 com.google.protobuf.Timestamp createTime_;
private com.google.protobuf.SingleFieldBuilderV3<
com.google.protobuf.Timestamp,
com.google.protobuf.Timestamp.Builder,
com.google.protobuf.TimestampOrBuilder>
createTimeBuilder_;
/**
*
*
*
* Output only. The creation time of the object.
*
*
*
* .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
*
*
* @return Whether the createTime field is set.
*/
public boolean hasCreateTime() {
return ((bitField0_ & 0x00000002) != 0);
}
/**
*
*
*
* Output only. The creation time of the object.
*
*
*
* .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
*
*
* @return The createTime.
*/
public com.google.protobuf.Timestamp getCreateTime() {
if (createTimeBuilder_ == null) {
return createTime_ == null
? com.google.protobuf.Timestamp.getDefaultInstance()
: createTime_;
} else {
return createTimeBuilder_.getMessage();
}
}
/**
*
*
*
* Output only. The creation time of the object.
*
*
*
* .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
*
*/
public Builder setCreateTime(com.google.protobuf.Timestamp value) {
if (createTimeBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
createTime_ = value;
} else {
createTimeBuilder_.setMessage(value);
}
bitField0_ |= 0x00000002;
onChanged();
return this;
}
/**
*
*
*
* Output only. The creation time of the object.
*
*
*
* .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
*
*/
public Builder setCreateTime(com.google.protobuf.Timestamp.Builder builderForValue) {
if (createTimeBuilder_ == null) {
createTime_ = builderForValue.build();
} else {
createTimeBuilder_.setMessage(builderForValue.build());
}
bitField0_ |= 0x00000002;
onChanged();
return this;
}
/**
*
*
*
* Output only. The creation time of the object.
*
*
*
* .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
*
*/
public Builder mergeCreateTime(com.google.protobuf.Timestamp value) {
if (createTimeBuilder_ == null) {
if (((bitField0_ & 0x00000002) != 0)
&& createTime_ != null
&& createTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) {
getCreateTimeBuilder().mergeFrom(value);
} else {
createTime_ = value;
}
} else {
createTimeBuilder_.mergeFrom(value);
}
if (createTime_ != null) {
bitField0_ |= 0x00000002;
onChanged();
}
return this;
}
/**
*
*
*
* Output only. The creation time of the object.
*
*
*
* .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
*
*/
public Builder clearCreateTime() {
bitField0_ = (bitField0_ & ~0x00000002);
createTime_ = null;
if (createTimeBuilder_ != null) {
createTimeBuilder_.dispose();
createTimeBuilder_ = null;
}
onChanged();
return this;
}
/**
*
*
*
* Output only. The creation time of the object.
*
*
*
* .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
*
*/
public com.google.protobuf.Timestamp.Builder getCreateTimeBuilder() {
bitField0_ |= 0x00000002;
onChanged();
return getCreateTimeFieldBuilder().getBuilder();
}
/**
*
*
*
* Output only. The creation time of the object.
*
*
*
* .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
*
*/
public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() {
if (createTimeBuilder_ != null) {
return createTimeBuilder_.getMessageOrBuilder();
} else {
return createTime_ == null
? com.google.protobuf.Timestamp.getDefaultInstance()
: createTime_;
}
}
/**
*
*
*
* Output only. The creation time of the object.
*
*
*
* .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
*
*/
private com.google.protobuf.SingleFieldBuilderV3<
com.google.protobuf.Timestamp,
com.google.protobuf.Timestamp.Builder,
com.google.protobuf.TimestampOrBuilder>
getCreateTimeFieldBuilder() {
if (createTimeBuilder_ == null) {
createTimeBuilder_ =
new com.google.protobuf.SingleFieldBuilderV3<
com.google.protobuf.Timestamp,
com.google.protobuf.Timestamp.Builder,
com.google.protobuf.TimestampOrBuilder>(
getCreateTime(), getParentForChildren(), isClean());
createTime_ = null;
}
return createTimeBuilder_;
}
private com.google.protobuf.Timestamp updateTime_;
private com.google.protobuf.SingleFieldBuilderV3<
com.google.protobuf.Timestamp,
com.google.protobuf.Timestamp.Builder,
com.google.protobuf.TimestampOrBuilder>
updateTimeBuilder_;
/**
*
*
*
* Output only. The last update time of the object.
*
*
*
* .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
*
*
* @return Whether the updateTime field is set.
*/
public boolean hasUpdateTime() {
return ((bitField0_ & 0x00000004) != 0);
}
/**
*
*
*
* Output only. The last update time of the object.
*
*
*
* .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
*
*
* @return The updateTime.
*/
public com.google.protobuf.Timestamp getUpdateTime() {
if (updateTimeBuilder_ == null) {
return updateTime_ == null
? com.google.protobuf.Timestamp.getDefaultInstance()
: updateTime_;
} else {
return updateTimeBuilder_.getMessage();
}
}
/**
*
*
*
* Output only. The last update time of the object.
*
*
*
* .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
*
*/
public Builder setUpdateTime(com.google.protobuf.Timestamp value) {
if (updateTimeBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
updateTime_ = value;
} else {
updateTimeBuilder_.setMessage(value);
}
bitField0_ |= 0x00000004;
onChanged();
return this;
}
/**
*
*
*
* Output only. The last update time of the object.
*
*
*
* .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
*
*/
public Builder setUpdateTime(com.google.protobuf.Timestamp.Builder builderForValue) {
if (updateTimeBuilder_ == null) {
updateTime_ = builderForValue.build();
} else {
updateTimeBuilder_.setMessage(builderForValue.build());
}
bitField0_ |= 0x00000004;
onChanged();
return this;
}
/**
*
*
*
* Output only. The last update time of the object.
*
*
*
* .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
*
*/
public Builder mergeUpdateTime(com.google.protobuf.Timestamp value) {
if (updateTimeBuilder_ == null) {
if (((bitField0_ & 0x00000004) != 0)
&& updateTime_ != null
&& updateTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) {
getUpdateTimeBuilder().mergeFrom(value);
} else {
updateTime_ = value;
}
} else {
updateTimeBuilder_.mergeFrom(value);
}
if (updateTime_ != null) {
bitField0_ |= 0x00000004;
onChanged();
}
return this;
}
/**
*
*
*
* Output only. The last update time of the object.
*
*
*
* .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
*
*/
public Builder clearUpdateTime() {
bitField0_ = (bitField0_ & ~0x00000004);
updateTime_ = null;
if (updateTimeBuilder_ != null) {
updateTimeBuilder_.dispose();
updateTimeBuilder_ = null;
}
onChanged();
return this;
}
/**
*
*
*
* Output only. The last update time of the object.
*
*
*
* .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
*
*/
public com.google.protobuf.Timestamp.Builder getUpdateTimeBuilder() {
bitField0_ |= 0x00000004;
onChanged();
return getUpdateTimeFieldBuilder().getBuilder();
}
/**
*
*
*
* Output only. The last update time of the object.
*
*
*
* .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
*
*/
public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder() {
if (updateTimeBuilder_ != null) {
return updateTimeBuilder_.getMessageOrBuilder();
} else {
return updateTime_ == null
? com.google.protobuf.Timestamp.getDefaultInstance()
: updateTime_;
}
}
/**
*
*
*
* Output only. The last update time of the object.
*
*
*
* .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
*
*/
private com.google.protobuf.SingleFieldBuilderV3<
com.google.protobuf.Timestamp,
com.google.protobuf.Timestamp.Builder,
com.google.protobuf.TimestampOrBuilder>
getUpdateTimeFieldBuilder() {
if (updateTimeBuilder_ == null) {
updateTimeBuilder_ =
new com.google.protobuf.SingleFieldBuilderV3<
com.google.protobuf.Timestamp,
com.google.protobuf.Timestamp.Builder,
com.google.protobuf.TimestampOrBuilder>(
getUpdateTime(), getParentForChildren(), isClean());
updateTime_ = null;
}
return updateTimeBuilder_;
}
private java.lang.Object displayName_ = "";
/**
*
*
*
* Required. Display name.
*
*
* string display_name = 5 [(.google.api.field_behavior) = REQUIRED];
*
* @return The displayName.
*/
public java.lang.String getDisplayName() {
java.lang.Object ref = displayName_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
displayName_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
*
*
*
* Required. Display name.
*
*
* string display_name = 5 [(.google.api.field_behavior) = REQUIRED];
*
* @return The bytes for displayName.
*/
public com.google.protobuf.ByteString getDisplayNameBytes() {
java.lang.Object ref = displayName_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
displayName_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
*
*
*
* Required. Display name.
*
*
* string display_name = 5 [(.google.api.field_behavior) = REQUIRED];
*
* @param value The displayName to set.
* @return This builder for chaining.
*/
public Builder setDisplayName(java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
displayName_ = value;
bitField0_ |= 0x00000008;
onChanged();
return this;
}
/**
*
*
*
* Required. Display name.
*
*
* string display_name = 5 [(.google.api.field_behavior) = REQUIRED];
*
* @return This builder for chaining.
*/
public Builder clearDisplayName() {
displayName_ = getDefaultInstance().getDisplayName();
bitField0_ = (bitField0_ & ~0x00000008);
onChanged();
return this;
}
/**
*
*
*
* Required. Display name.
*
*
* string display_name = 5 [(.google.api.field_behavior) = REQUIRED];
*
* @param value The bytes for displayName to set.
* @return This builder for chaining.
*/
public Builder setDisplayNameBytes(com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
displayName_ = value;
bitField0_ |= 0x00000008;
onChanged();
return this;
}
private java.util.List errors_ =
java.util.Collections.emptyList();
private void ensureErrorsIsMutable() {
if (!((bitField0_ & 0x00000010) != 0)) {
errors_ = new java.util.ArrayList(errors_);
bitField0_ |= 0x00000010;
}
}
private com.google.protobuf.RepeatedFieldBuilderV3<
com.google.cloud.datastream.v1.Error,
com.google.cloud.datastream.v1.Error.Builder,
com.google.cloud.datastream.v1.ErrorOrBuilder>
errorsBuilder_;
/**
*
*
*
* Output only. Active errors on the object.
*
*
*
* repeated .google.cloud.datastream.v1.Error errors = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];
*
*/
public java.util.List getErrorsList() {
if (errorsBuilder_ == null) {
return java.util.Collections.unmodifiableList(errors_);
} else {
return errorsBuilder_.getMessageList();
}
}
/**
*
*
*
* Output only. Active errors on the object.
*
*
*
* repeated .google.cloud.datastream.v1.Error errors = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];
*
*/
public int getErrorsCount() {
if (errorsBuilder_ == null) {
return errors_.size();
} else {
return errorsBuilder_.getCount();
}
}
/**
*
*
*
* Output only. Active errors on the object.
*
*
*
* repeated .google.cloud.datastream.v1.Error errors = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];
*
*/
public com.google.cloud.datastream.v1.Error getErrors(int index) {
if (errorsBuilder_ == null) {
return errors_.get(index);
} else {
return errorsBuilder_.getMessage(index);
}
}
/**
*
*
*
* Output only. Active errors on the object.
*
*
*
* repeated .google.cloud.datastream.v1.Error errors = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];
*
*/
public Builder setErrors(int index, com.google.cloud.datastream.v1.Error value) {
if (errorsBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureErrorsIsMutable();
errors_.set(index, value);
onChanged();
} else {
errorsBuilder_.setMessage(index, value);
}
return this;
}
/**
*
*
*
* Output only. Active errors on the object.
*
*
*
* repeated .google.cloud.datastream.v1.Error errors = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];
*
*/
public Builder setErrors(
int index, com.google.cloud.datastream.v1.Error.Builder builderForValue) {
if (errorsBuilder_ == null) {
ensureErrorsIsMutable();
errors_.set(index, builderForValue.build());
onChanged();
} else {
errorsBuilder_.setMessage(index, builderForValue.build());
}
return this;
}
/**
*
*
*
* Output only. Active errors on the object.
*
*
*
* repeated .google.cloud.datastream.v1.Error errors = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];
*
*/
public Builder addErrors(com.google.cloud.datastream.v1.Error value) {
if (errorsBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureErrorsIsMutable();
errors_.add(value);
onChanged();
} else {
errorsBuilder_.addMessage(value);
}
return this;
}
/**
*
*
*
* Output only. Active errors on the object.
*
*
*
* repeated .google.cloud.datastream.v1.Error errors = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];
*
*/
public Builder addErrors(int index, com.google.cloud.datastream.v1.Error value) {
if (errorsBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureErrorsIsMutable();
errors_.add(index, value);
onChanged();
} else {
errorsBuilder_.addMessage(index, value);
}
return this;
}
/**
*
*
*
* Output only. Active errors on the object.
*
*
*
* repeated .google.cloud.datastream.v1.Error errors = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];
*
*/
public Builder addErrors(com.google.cloud.datastream.v1.Error.Builder builderForValue) {
if (errorsBuilder_ == null) {
ensureErrorsIsMutable();
errors_.add(builderForValue.build());
onChanged();
} else {
errorsBuilder_.addMessage(builderForValue.build());
}
return this;
}
/**
*
*
*
* Output only. Active errors on the object.
*
*
*
* repeated .google.cloud.datastream.v1.Error errors = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];
*
*/
public Builder addErrors(
int index, com.google.cloud.datastream.v1.Error.Builder builderForValue) {
if (errorsBuilder_ == null) {
ensureErrorsIsMutable();
errors_.add(index, builderForValue.build());
onChanged();
} else {
errorsBuilder_.addMessage(index, builderForValue.build());
}
return this;
}
/**
*
*
*
* Output only. Active errors on the object.
*
*
*
* repeated .google.cloud.datastream.v1.Error errors = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];
*
*/
public Builder addAllErrors(
java.lang.Iterable extends com.google.cloud.datastream.v1.Error> values) {
if (errorsBuilder_ == null) {
ensureErrorsIsMutable();
com.google.protobuf.AbstractMessageLite.Builder.addAll(values, errors_);
onChanged();
} else {
errorsBuilder_.addAllMessages(values);
}
return this;
}
/**
*
*
*
* Output only. Active errors on the object.
*
*
*
* repeated .google.cloud.datastream.v1.Error errors = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];
*
*/
public Builder clearErrors() {
if (errorsBuilder_ == null) {
errors_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000010);
onChanged();
} else {
errorsBuilder_.clear();
}
return this;
}
/**
*
*
*
* Output only. Active errors on the object.
*
*
*
* repeated .google.cloud.datastream.v1.Error errors = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];
*
*/
public Builder removeErrors(int index) {
if (errorsBuilder_ == null) {
ensureErrorsIsMutable();
errors_.remove(index);
onChanged();
} else {
errorsBuilder_.remove(index);
}
return this;
}
/**
*
*
*
* Output only. Active errors on the object.
*
*
*
* repeated .google.cloud.datastream.v1.Error errors = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];
*
*/
public com.google.cloud.datastream.v1.Error.Builder getErrorsBuilder(int index) {
return getErrorsFieldBuilder().getBuilder(index);
}
/**
*
*
*
* Output only. Active errors on the object.
*
*
*
* repeated .google.cloud.datastream.v1.Error errors = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];
*
*/
public com.google.cloud.datastream.v1.ErrorOrBuilder getErrorsOrBuilder(int index) {
if (errorsBuilder_ == null) {
return errors_.get(index);
} else {
return errorsBuilder_.getMessageOrBuilder(index);
}
}
/**
*
*
*
* Output only. Active errors on the object.
*
*
*
* repeated .google.cloud.datastream.v1.Error errors = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];
*
*/
public java.util.List extends com.google.cloud.datastream.v1.ErrorOrBuilder>
getErrorsOrBuilderList() {
if (errorsBuilder_ != null) {
return errorsBuilder_.getMessageOrBuilderList();
} else {
return java.util.Collections.unmodifiableList(errors_);
}
}
/**
*
*
*
* Output only. Active errors on the object.
*
*
*
* repeated .google.cloud.datastream.v1.Error errors = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];
*
*/
public com.google.cloud.datastream.v1.Error.Builder addErrorsBuilder() {
return getErrorsFieldBuilder()
.addBuilder(com.google.cloud.datastream.v1.Error.getDefaultInstance());
}
/**
*
*
*
* Output only. Active errors on the object.
*
*
*
* repeated .google.cloud.datastream.v1.Error errors = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];
*
*/
public com.google.cloud.datastream.v1.Error.Builder addErrorsBuilder(int index) {
return getErrorsFieldBuilder()
.addBuilder(index, com.google.cloud.datastream.v1.Error.getDefaultInstance());
}
/**
*
*
*
* Output only. Active errors on the object.
*
*
*
* repeated .google.cloud.datastream.v1.Error errors = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];
*
*/
public java.util.List getErrorsBuilderList() {
return getErrorsFieldBuilder().getBuilderList();
}
private com.google.protobuf.RepeatedFieldBuilderV3<
com.google.cloud.datastream.v1.Error,
com.google.cloud.datastream.v1.Error.Builder,
com.google.cloud.datastream.v1.ErrorOrBuilder>
getErrorsFieldBuilder() {
if (errorsBuilder_ == null) {
errorsBuilder_ =
new com.google.protobuf.RepeatedFieldBuilderV3<
com.google.cloud.datastream.v1.Error,
com.google.cloud.datastream.v1.Error.Builder,
com.google.cloud.datastream.v1.ErrorOrBuilder>(
errors_, ((bitField0_ & 0x00000010) != 0), getParentForChildren(), isClean());
errors_ = null;
}
return errorsBuilder_;
}
private com.google.cloud.datastream.v1.BackfillJob backfillJob_;
private com.google.protobuf.SingleFieldBuilderV3<
com.google.cloud.datastream.v1.BackfillJob,
com.google.cloud.datastream.v1.BackfillJob.Builder,
com.google.cloud.datastream.v1.BackfillJobOrBuilder>
backfillJobBuilder_;
/**
*
*
*
* The latest backfill job that was initiated for the stream object.
*
*
* .google.cloud.datastream.v1.BackfillJob backfill_job = 7;
*
* @return Whether the backfillJob field is set.
*/
public boolean hasBackfillJob() {
return ((bitField0_ & 0x00000020) != 0);
}
/**
*
*
*
* The latest backfill job that was initiated for the stream object.
*
*
* .google.cloud.datastream.v1.BackfillJob backfill_job = 7;
*
* @return The backfillJob.
*/
public com.google.cloud.datastream.v1.BackfillJob getBackfillJob() {
if (backfillJobBuilder_ == null) {
return backfillJob_ == null
? com.google.cloud.datastream.v1.BackfillJob.getDefaultInstance()
: backfillJob_;
} else {
return backfillJobBuilder_.getMessage();
}
}
/**
*
*
*
* The latest backfill job that was initiated for the stream object.
*
*
* .google.cloud.datastream.v1.BackfillJob backfill_job = 7;
*/
public Builder setBackfillJob(com.google.cloud.datastream.v1.BackfillJob value) {
if (backfillJobBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
backfillJob_ = value;
} else {
backfillJobBuilder_.setMessage(value);
}
bitField0_ |= 0x00000020;
onChanged();
return this;
}
/**
*
*
*
* The latest backfill job that was initiated for the stream object.
*
*
* .google.cloud.datastream.v1.BackfillJob backfill_job = 7;
*/
public Builder setBackfillJob(
com.google.cloud.datastream.v1.BackfillJob.Builder builderForValue) {
if (backfillJobBuilder_ == null) {
backfillJob_ = builderForValue.build();
} else {
backfillJobBuilder_.setMessage(builderForValue.build());
}
bitField0_ |= 0x00000020;
onChanged();
return this;
}
/**
*
*
*
* The latest backfill job that was initiated for the stream object.
*
*
* .google.cloud.datastream.v1.BackfillJob backfill_job = 7;
*/
public Builder mergeBackfillJob(com.google.cloud.datastream.v1.BackfillJob value) {
if (backfillJobBuilder_ == null) {
if (((bitField0_ & 0x00000020) != 0)
&& backfillJob_ != null
&& backfillJob_ != com.google.cloud.datastream.v1.BackfillJob.getDefaultInstance()) {
getBackfillJobBuilder().mergeFrom(value);
} else {
backfillJob_ = value;
}
} else {
backfillJobBuilder_.mergeFrom(value);
}
if (backfillJob_ != null) {
bitField0_ |= 0x00000020;
onChanged();
}
return this;
}
/**
*
*
*
* The latest backfill job that was initiated for the stream object.
*
*
* .google.cloud.datastream.v1.BackfillJob backfill_job = 7;
*/
public Builder clearBackfillJob() {
bitField0_ = (bitField0_ & ~0x00000020);
backfillJob_ = null;
if (backfillJobBuilder_ != null) {
backfillJobBuilder_.dispose();
backfillJobBuilder_ = null;
}
onChanged();
return this;
}
/**
*
*
*
* The latest backfill job that was initiated for the stream object.
*
*
* .google.cloud.datastream.v1.BackfillJob backfill_job = 7;
*/
public com.google.cloud.datastream.v1.BackfillJob.Builder getBackfillJobBuilder() {
bitField0_ |= 0x00000020;
onChanged();
return getBackfillJobFieldBuilder().getBuilder();
}
/**
*
*
*
* The latest backfill job that was initiated for the stream object.
*
*
* .google.cloud.datastream.v1.BackfillJob backfill_job = 7;
*/
public com.google.cloud.datastream.v1.BackfillJobOrBuilder getBackfillJobOrBuilder() {
if (backfillJobBuilder_ != null) {
return backfillJobBuilder_.getMessageOrBuilder();
} else {
return backfillJob_ == null
? com.google.cloud.datastream.v1.BackfillJob.getDefaultInstance()
: backfillJob_;
}
}
/**
*
*
*
* The latest backfill job that was initiated for the stream object.
*
*
* .google.cloud.datastream.v1.BackfillJob backfill_job = 7;
*/
private com.google.protobuf.SingleFieldBuilderV3<
com.google.cloud.datastream.v1.BackfillJob,
com.google.cloud.datastream.v1.BackfillJob.Builder,
com.google.cloud.datastream.v1.BackfillJobOrBuilder>
getBackfillJobFieldBuilder() {
if (backfillJobBuilder_ == null) {
backfillJobBuilder_ =
new com.google.protobuf.SingleFieldBuilderV3<
com.google.cloud.datastream.v1.BackfillJob,
com.google.cloud.datastream.v1.BackfillJob.Builder,
com.google.cloud.datastream.v1.BackfillJobOrBuilder>(
getBackfillJob(), getParentForChildren(), isClean());
backfillJob_ = null;
}
return backfillJobBuilder_;
}
private com.google.cloud.datastream.v1.SourceObjectIdentifier sourceObject_;
private com.google.protobuf.SingleFieldBuilderV3<
com.google.cloud.datastream.v1.SourceObjectIdentifier,
com.google.cloud.datastream.v1.SourceObjectIdentifier.Builder,
com.google.cloud.datastream.v1.SourceObjectIdentifierOrBuilder>
sourceObjectBuilder_;
/**
*
*
*
* The object identifier in the data source.
*
*
* .google.cloud.datastream.v1.SourceObjectIdentifier source_object = 8;
*
* @return Whether the sourceObject field is set.
*/
public boolean hasSourceObject() {
return ((bitField0_ & 0x00000040) != 0);
}
/**
*
*
*
* The object identifier in the data source.
*
*
* .google.cloud.datastream.v1.SourceObjectIdentifier source_object = 8;
*
* @return The sourceObject.
*/
public com.google.cloud.datastream.v1.SourceObjectIdentifier getSourceObject() {
if (sourceObjectBuilder_ == null) {
return sourceObject_ == null
? com.google.cloud.datastream.v1.SourceObjectIdentifier.getDefaultInstance()
: sourceObject_;
} else {
return sourceObjectBuilder_.getMessage();
}
}
/**
*
*
*
* The object identifier in the data source.
*
*
* .google.cloud.datastream.v1.SourceObjectIdentifier source_object = 8;
*/
public Builder setSourceObject(com.google.cloud.datastream.v1.SourceObjectIdentifier value) {
if (sourceObjectBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
sourceObject_ = value;
} else {
sourceObjectBuilder_.setMessage(value);
}
bitField0_ |= 0x00000040;
onChanged();
return this;
}
/**
*
*
*
* The object identifier in the data source.
*
*
* .google.cloud.datastream.v1.SourceObjectIdentifier source_object = 8;
*/
public Builder setSourceObject(
com.google.cloud.datastream.v1.SourceObjectIdentifier.Builder builderForValue) {
if (sourceObjectBuilder_ == null) {
sourceObject_ = builderForValue.build();
} else {
sourceObjectBuilder_.setMessage(builderForValue.build());
}
bitField0_ |= 0x00000040;
onChanged();
return this;
}
/**
*
*
*
* The object identifier in the data source.
*
*
* .google.cloud.datastream.v1.SourceObjectIdentifier source_object = 8;
*/
public Builder mergeSourceObject(com.google.cloud.datastream.v1.SourceObjectIdentifier value) {
if (sourceObjectBuilder_ == null) {
if (((bitField0_ & 0x00000040) != 0)
&& sourceObject_ != null
&& sourceObject_
!= com.google.cloud.datastream.v1.SourceObjectIdentifier.getDefaultInstance()) {
getSourceObjectBuilder().mergeFrom(value);
} else {
sourceObject_ = value;
}
} else {
sourceObjectBuilder_.mergeFrom(value);
}
if (sourceObject_ != null) {
bitField0_ |= 0x00000040;
onChanged();
}
return this;
}
/**
*
*
*
* The object identifier in the data source.
*
*
* .google.cloud.datastream.v1.SourceObjectIdentifier source_object = 8;
*/
public Builder clearSourceObject() {
bitField0_ = (bitField0_ & ~0x00000040);
sourceObject_ = null;
if (sourceObjectBuilder_ != null) {
sourceObjectBuilder_.dispose();
sourceObjectBuilder_ = null;
}
onChanged();
return this;
}
/**
*
*
*
* The object identifier in the data source.
*
*
* .google.cloud.datastream.v1.SourceObjectIdentifier source_object = 8;
*/
public com.google.cloud.datastream.v1.SourceObjectIdentifier.Builder getSourceObjectBuilder() {
bitField0_ |= 0x00000040;
onChanged();
return getSourceObjectFieldBuilder().getBuilder();
}
/**
*
*
*
* The object identifier in the data source.
*
*
* .google.cloud.datastream.v1.SourceObjectIdentifier source_object = 8;
*/
public com.google.cloud.datastream.v1.SourceObjectIdentifierOrBuilder
getSourceObjectOrBuilder() {
if (sourceObjectBuilder_ != null) {
return sourceObjectBuilder_.getMessageOrBuilder();
} else {
return sourceObject_ == null
? com.google.cloud.datastream.v1.SourceObjectIdentifier.getDefaultInstance()
: sourceObject_;
}
}
/**
*
*
*
* The object identifier in the data source.
*
*
* .google.cloud.datastream.v1.SourceObjectIdentifier source_object = 8;
*/
private com.google.protobuf.SingleFieldBuilderV3<
com.google.cloud.datastream.v1.SourceObjectIdentifier,
com.google.cloud.datastream.v1.SourceObjectIdentifier.Builder,
com.google.cloud.datastream.v1.SourceObjectIdentifierOrBuilder>
getSourceObjectFieldBuilder() {
if (sourceObjectBuilder_ == null) {
sourceObjectBuilder_ =
new com.google.protobuf.SingleFieldBuilderV3<
com.google.cloud.datastream.v1.SourceObjectIdentifier,
com.google.cloud.datastream.v1.SourceObjectIdentifier.Builder,
com.google.cloud.datastream.v1.SourceObjectIdentifierOrBuilder>(
getSourceObject(), getParentForChildren(), isClean());
sourceObject_ = null;
}
return sourceObjectBuilder_;
}
@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.datastream.v1.StreamObject)
}
// @@protoc_insertion_point(class_scope:google.cloud.datastream.v1.StreamObject)
private static final com.google.cloud.datastream.v1.StreamObject DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new com.google.cloud.datastream.v1.StreamObject();
}
public static com.google.cloud.datastream.v1.StreamObject getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser PARSER =
new com.google.protobuf.AbstractParser() {
@java.lang.Override
public StreamObject 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.datastream.v1.StreamObject getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy