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 2020 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
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();
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
return this.unknownFields;
}
private StreamObject(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
this();
if (extensionRegistry == null) {
throw new java.lang.NullPointerException();
}
int mutable_bitField0_ = 0;
com.google.protobuf.UnknownFieldSet.Builder unknownFields =
com.google.protobuf.UnknownFieldSet.newBuilder();
try {
boolean done = false;
while (!done) {
int tag = input.readTag();
switch (tag) {
case 0:
done = true;
break;
case 10:
{
java.lang.String s = input.readStringRequireUtf8();
name_ = s;
break;
}
case 18:
{
com.google.protobuf.Timestamp.Builder subBuilder = null;
if (createTime_ != null) {
subBuilder = createTime_.toBuilder();
}
createTime_ =
input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(createTime_);
createTime_ = subBuilder.buildPartial();
}
break;
}
case 26:
{
com.google.protobuf.Timestamp.Builder subBuilder = null;
if (updateTime_ != null) {
subBuilder = updateTime_.toBuilder();
}
updateTime_ =
input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(updateTime_);
updateTime_ = subBuilder.buildPartial();
}
break;
}
case 42:
{
java.lang.String s = input.readStringRequireUtf8();
displayName_ = s;
break;
}
case 50:
{
if (!((mutable_bitField0_ & 0x00000001) != 0)) {
errors_ = new java.util.ArrayList();
mutable_bitField0_ |= 0x00000001;
}
errors_.add(
input.readMessage(
com.google.cloud.datastream.v1.Error.parser(), extensionRegistry));
break;
}
case 58:
{
com.google.cloud.datastream.v1.BackfillJob.Builder subBuilder = null;
if (backfillJob_ != null) {
subBuilder = backfillJob_.toBuilder();
}
backfillJob_ =
input.readMessage(
com.google.cloud.datastream.v1.BackfillJob.parser(), extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(backfillJob_);
backfillJob_ = subBuilder.buildPartial();
}
break;
}
case 66:
{
com.google.cloud.datastream.v1.SourceObjectIdentifier.Builder subBuilder = null;
if (sourceObject_ != null) {
subBuilder = sourceObject_.toBuilder();
}
sourceObject_ =
input.readMessage(
com.google.cloud.datastream.v1.SourceObjectIdentifier.parser(),
extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(sourceObject_);
sourceObject_ = subBuilder.buildPartial();
}
break;
}
default:
{
if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) {
done = true;
}
break;
}
}
}
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.setUnfinishedMessage(this);
} catch (java.io.IOException e) {
throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this);
} finally {
if (((mutable_bitField0_ & 0x00000001) != 0)) {
errors_ = java.util.Collections.unmodifiableList(errors_);
}
this.unknownFields = unknownFields.build();
makeExtensionsImmutable();
}
}
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);
}
public static final int NAME_FIELD_NUMBER = 1;
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 createTime_ != null;
}
/**
*
*
*
* 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 getCreateTime();
}
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 updateTime_ != null;
}
/**
*
*
*
* 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 getUpdateTime();
}
public static final int DISPLAY_NAME_FIELD_NUMBER = 5;
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;
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 backfillJob_ != null;
}
/**
*
*
*
* 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 getBackfillJob();
}
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 sourceObject_ != null;
}
/**
*
*
*
* 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 getSourceObject();
}
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 (createTime_ != null) {
output.writeMessage(2, getCreateTime());
}
if (updateTime_ != null) {
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 (backfillJob_ != null) {
output.writeMessage(7, getBackfillJob());
}
if (sourceObject_ != null) {
output.writeMessage(8, getSourceObject());
}
unknownFields.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 (createTime_ != null) {
size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getCreateTime());
}
if (updateTime_ != null) {
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 (backfillJob_ != null) {
size += com.google.protobuf.CodedOutputStream.computeMessageSize(7, getBackfillJob());
}
if (sourceObject_ != null) {
size += com.google.protobuf.CodedOutputStream.computeMessageSize(8, getSourceObject());
}
size += unknownFields.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 (!unknownFields.equals(other.unknownFields)) 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) + unknownFields.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) {
getErrorsFieldBuilder();
}
}
@java.lang.Override
public Builder clear() {
super.clear();
name_ = "";
if (createTimeBuilder_ == null) {
createTime_ = null;
} else {
createTime_ = null;
createTimeBuilder_ = null;
}
if (updateTimeBuilder_ == null) {
updateTime_ = null;
} else {
updateTime_ = null;
updateTimeBuilder_ = null;
}
displayName_ = "";
if (errorsBuilder_ == null) {
errors_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000001);
} else {
errorsBuilder_.clear();
}
if (backfillJobBuilder_ == null) {
backfillJob_ = null;
} else {
backfillJob_ = null;
backfillJobBuilder_ = null;
}
if (sourceObjectBuilder_ == null) {
sourceObject_ = null;
} else {
sourceObject_ = null;
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);
int from_bitField0_ = bitField0_;
result.name_ = name_;
if (createTimeBuilder_ == null) {
result.createTime_ = createTime_;
} else {
result.createTime_ = createTimeBuilder_.build();
}
if (updateTimeBuilder_ == null) {
result.updateTime_ = updateTime_;
} else {
result.updateTime_ = updateTimeBuilder_.build();
}
result.displayName_ = displayName_;
if (errorsBuilder_ == null) {
if (((bitField0_ & 0x00000001) != 0)) {
errors_ = java.util.Collections.unmodifiableList(errors_);
bitField0_ = (bitField0_ & ~0x00000001);
}
result.errors_ = errors_;
} else {
result.errors_ = errorsBuilder_.build();
}
if (backfillJobBuilder_ == null) {
result.backfillJob_ = backfillJob_;
} else {
result.backfillJob_ = backfillJobBuilder_.build();
}
if (sourceObjectBuilder_ == null) {
result.sourceObject_ = sourceObject_;
} else {
result.sourceObject_ = sourceObjectBuilder_.build();
}
onBuilt();
return result;
}
@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_;
onChanged();
}
if (other.hasCreateTime()) {
mergeCreateTime(other.getCreateTime());
}
if (other.hasUpdateTime()) {
mergeUpdateTime(other.getUpdateTime());
}
if (!other.getDisplayName().isEmpty()) {
displayName_ = other.displayName_;
onChanged();
}
if (errorsBuilder_ == null) {
if (!other.errors_.isEmpty()) {
if (errors_.isEmpty()) {
errors_ = other.errors_;
bitField0_ = (bitField0_ & ~0x00000001);
} else {
ensureErrorsIsMutable();
errors_.addAll(other.errors_);
}
onChanged();
}
} else {
if (!other.errors_.isEmpty()) {
if (errorsBuilder_.isEmpty()) {
errorsBuilder_.dispose();
errorsBuilder_ = null;
errors_ = other.errors_;
bitField0_ = (bitField0_ & ~0x00000001);
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.unknownFields);
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 {
com.google.cloud.datastream.v1.StreamObject parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (com.google.cloud.datastream.v1.StreamObject) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
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;
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();
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;
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 createTimeBuilder_ != null || createTime_ != null;
}
/**
*
*
*
* 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;
onChanged();
} else {
createTimeBuilder_.setMessage(value);
}
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();
onChanged();
} else {
createTimeBuilder_.setMessage(builderForValue.build());
}
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 (createTime_ != null) {
createTime_ =
com.google.protobuf.Timestamp.newBuilder(createTime_).mergeFrom(value).buildPartial();
} else {
createTime_ = value;
}
onChanged();
} else {
createTimeBuilder_.mergeFrom(value);
}
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() {
if (createTimeBuilder_ == null) {
createTime_ = null;
onChanged();
} else {
createTime_ = null;
createTimeBuilder_ = null;
}
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() {
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 updateTimeBuilder_ != null || updateTime_ != null;
}
/**
*
*
*
* 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;
onChanged();
} else {
updateTimeBuilder_.setMessage(value);
}
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();
onChanged();
} else {
updateTimeBuilder_.setMessage(builderForValue.build());
}
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 (updateTime_ != null) {
updateTime_ =
com.google.protobuf.Timestamp.newBuilder(updateTime_).mergeFrom(value).buildPartial();
} else {
updateTime_ = value;
}
onChanged();
} else {
updateTimeBuilder_.mergeFrom(value);
}
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() {
if (updateTimeBuilder_ == null) {
updateTime_ = null;
onChanged();
} else {
updateTime_ = null;
updateTimeBuilder_ = null;
}
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() {
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;
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();
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;
onChanged();
return this;
}
private java.util.List errors_ =
java.util.Collections.emptyList();
private void ensureErrorsIsMutable() {
if (!((bitField0_ & 0x00000001) != 0)) {
errors_ = new java.util.ArrayList(errors_);
bitField0_ |= 0x00000001;
}
}
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_ & ~0x00000001);
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_ & 0x00000001) != 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 backfillJobBuilder_ != null || backfillJob_ != null;
}
/**
*
*
*
* 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;
onChanged();
} else {
backfillJobBuilder_.setMessage(value);
}
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();
onChanged();
} else {
backfillJobBuilder_.setMessage(builderForValue.build());
}
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 (backfillJob_ != null) {
backfillJob_ =
com.google.cloud.datastream.v1.BackfillJob.newBuilder(backfillJob_)
.mergeFrom(value)
.buildPartial();
} else {
backfillJob_ = value;
}
onChanged();
} else {
backfillJobBuilder_.mergeFrom(value);
}
return this;
}
/**
*
*
*
* The latest backfill job that was initiated for the stream object.
*
*
* .google.cloud.datastream.v1.BackfillJob backfill_job = 7;
*/
public Builder clearBackfillJob() {
if (backfillJobBuilder_ == null) {
backfillJob_ = null;
onChanged();
} else {
backfillJob_ = null;
backfillJobBuilder_ = null;
}
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() {
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 sourceObjectBuilder_ != null || sourceObject_ != null;
}
/**
*
*
*
* 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;
onChanged();
} else {
sourceObjectBuilder_.setMessage(value);
}
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();
onChanged();
} else {
sourceObjectBuilder_.setMessage(builderForValue.build());
}
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 (sourceObject_ != null) {
sourceObject_ =
com.google.cloud.datastream.v1.SourceObjectIdentifier.newBuilder(sourceObject_)
.mergeFrom(value)
.buildPartial();
} else {
sourceObject_ = value;
}
onChanged();
} else {
sourceObjectBuilder_.mergeFrom(value);
}
return this;
}
/**
*
*
*
* The object identifier in the data source.
*
*
* .google.cloud.datastream.v1.SourceObjectIdentifier source_object = 8;
*/
public Builder clearSourceObject() {
if (sourceObjectBuilder_ == null) {
sourceObject_ = null;
onChanged();
} else {
sourceObject_ = null;
sourceObjectBuilder_ = null;
}
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() {
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 {
return new StreamObject(input, extensionRegistry);
}
};
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