All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.google.cloud.dialogflow.cx.v3beta1.PlaybookVersion Maven / Gradle / Ivy

There is a newer version: 0.65.0
Show newest version
/*
 * 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/dialogflow/cx/v3beta1/playbook.proto

// Protobuf Java Version: 3.25.5
package com.google.cloud.dialogflow.cx.v3beta1;

/**
 *
 *
 * 
 * Playbook version is a snapshot of the playbook at certain timestamp.
 * 
* * Protobuf type {@code google.cloud.dialogflow.cx.v3beta1.PlaybookVersion} */ public final class PlaybookVersion extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.dialogflow.cx.v3beta1.PlaybookVersion) PlaybookVersionOrBuilder { private static final long serialVersionUID = 0L; // Use PlaybookVersion.newBuilder() to construct. private PlaybookVersion(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private PlaybookVersion() { name_ = ""; description_ = ""; examples_ = java.util.Collections.emptyList(); } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new PlaybookVersion(); } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.cloud.dialogflow.cx.v3beta1.PlaybookProto .internal_static_google_cloud_dialogflow_cx_v3beta1_PlaybookVersion_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.google.cloud.dialogflow.cx.v3beta1.PlaybookProto .internal_static_google_cloud_dialogflow_cx_v3beta1_PlaybookVersion_fieldAccessorTable .ensureFieldAccessorsInitialized( com.google.cloud.dialogflow.cx.v3beta1.PlaybookVersion.class, com.google.cloud.dialogflow.cx.v3beta1.PlaybookVersion.Builder.class); } private int bitField0_; public static final int NAME_FIELD_NUMBER = 1; @SuppressWarnings("serial") private volatile java.lang.Object name_ = ""; /** * * *
   * The unique identifier of the playbook version.
   * Format: `projects/<Project ID>/locations/<Location ID>/agents/<Agent
   * ID>/playbooks/<Playbook ID>/versions/<Version ID>`.
   * 
* * string name = 1; * * @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; } } /** * * *
   * The unique identifier of the playbook version.
   * Format: `projects/<Project ID>/locations/<Location ID>/agents/<Agent
   * ID>/playbooks/<Playbook ID>/versions/<Version ID>`.
   * 
* * string name = 1; * * @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 DESCRIPTION_FIELD_NUMBER = 2; @SuppressWarnings("serial") private volatile java.lang.Object description_ = ""; /** * * *
   * Optional. The description of the playbook version.
   * 
* * string description = 2 [(.google.api.field_behavior) = OPTIONAL]; * * @return The description. */ @java.lang.Override public java.lang.String getDescription() { java.lang.Object ref = description_; 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(); description_ = s; return s; } } /** * * *
   * Optional. The description of the playbook version.
   * 
* * string description = 2 [(.google.api.field_behavior) = OPTIONAL]; * * @return The bytes for description. */ @java.lang.Override public com.google.protobuf.ByteString getDescriptionBytes() { java.lang.Object ref = description_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); description_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int PLAYBOOK_FIELD_NUMBER = 3; private com.google.cloud.dialogflow.cx.v3beta1.Playbook playbook_; /** * * *
   * Output only. Snapshot of the playbook when the playbook version is created.
   * 
* * * .google.cloud.dialogflow.cx.v3beta1.Playbook playbook = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * * @return Whether the playbook field is set. */ @java.lang.Override public boolean hasPlaybook() { return ((bitField0_ & 0x00000001) != 0); } /** * * *
   * Output only. Snapshot of the playbook when the playbook version is created.
   * 
* * * .google.cloud.dialogflow.cx.v3beta1.Playbook playbook = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * * @return The playbook. */ @java.lang.Override public com.google.cloud.dialogflow.cx.v3beta1.Playbook getPlaybook() { return playbook_ == null ? com.google.cloud.dialogflow.cx.v3beta1.Playbook.getDefaultInstance() : playbook_; } /** * * *
   * Output only. Snapshot of the playbook when the playbook version is created.
   * 
* * * .google.cloud.dialogflow.cx.v3beta1.Playbook playbook = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; * */ @java.lang.Override public com.google.cloud.dialogflow.cx.v3beta1.PlaybookOrBuilder getPlaybookOrBuilder() { return playbook_ == null ? com.google.cloud.dialogflow.cx.v3beta1.Playbook.getDefaultInstance() : playbook_; } public static final int EXAMPLES_FIELD_NUMBER = 4; @SuppressWarnings("serial") private java.util.List examples_; /** * * *
   * Output only. Snapshot of the examples belonging to the playbook when the
   * playbook version is created.
   * 
* * * repeated .google.cloud.dialogflow.cx.v3beta1.Example examples = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; * */ @java.lang.Override public java.util.List getExamplesList() { return examples_; } /** * * *
   * Output only. Snapshot of the examples belonging to the playbook when the
   * playbook version is created.
   * 
* * * repeated .google.cloud.dialogflow.cx.v3beta1.Example examples = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; * */ @java.lang.Override public java.util.List getExamplesOrBuilderList() { return examples_; } /** * * *
   * Output only. Snapshot of the examples belonging to the playbook when the
   * playbook version is created.
   * 
* * * repeated .google.cloud.dialogflow.cx.v3beta1.Example examples = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; * */ @java.lang.Override public int getExamplesCount() { return examples_.size(); } /** * * *
   * Output only. Snapshot of the examples belonging to the playbook when the
   * playbook version is created.
   * 
* * * repeated .google.cloud.dialogflow.cx.v3beta1.Example examples = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; * */ @java.lang.Override public com.google.cloud.dialogflow.cx.v3beta1.Example getExamples(int index) { return examples_.get(index); } /** * * *
   * Output only. Snapshot of the examples belonging to the playbook when the
   * playbook version is created.
   * 
* * * repeated .google.cloud.dialogflow.cx.v3beta1.Example examples = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; * */ @java.lang.Override public com.google.cloud.dialogflow.cx.v3beta1.ExampleOrBuilder getExamplesOrBuilder(int index) { return examples_.get(index); } public static final int UPDATE_TIME_FIELD_NUMBER = 5; private com.google.protobuf.Timestamp updateTime_; /** * * *
   * Output only. Last time the playbook version was created or modified.
   * 
* * .google.protobuf.Timestamp update_time = 5 [(.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. Last time the playbook version was created or modified.
   * 
* * .google.protobuf.Timestamp update_time = 5 [(.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. Last time the playbook version was created or modified.
   * 
* * .google.protobuf.Timestamp update_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; * */ @java.lang.Override public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder() { return updateTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : updateTime_; } 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 (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(description_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 2, description_); } if (((bitField0_ & 0x00000001) != 0)) { output.writeMessage(3, getPlaybook()); } for (int i = 0; i < examples_.size(); i++) { output.writeMessage(4, examples_.get(i)); } if (((bitField0_ & 0x00000002) != 0)) { output.writeMessage(5, getUpdateTime()); } 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 (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(description_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, description_); } if (((bitField0_ & 0x00000001) != 0)) { size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, getPlaybook()); } for (int i = 0; i < examples_.size(); i++) { size += com.google.protobuf.CodedOutputStream.computeMessageSize(4, examples_.get(i)); } if (((bitField0_ & 0x00000002) != 0)) { size += com.google.protobuf.CodedOutputStream.computeMessageSize(5, getUpdateTime()); } 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.dialogflow.cx.v3beta1.PlaybookVersion)) { return super.equals(obj); } com.google.cloud.dialogflow.cx.v3beta1.PlaybookVersion other = (com.google.cloud.dialogflow.cx.v3beta1.PlaybookVersion) obj; if (!getName().equals(other.getName())) return false; if (!getDescription().equals(other.getDescription())) return false; if (hasPlaybook() != other.hasPlaybook()) return false; if (hasPlaybook()) { if (!getPlaybook().equals(other.getPlaybook())) return false; } if (!getExamplesList().equals(other.getExamplesList())) return false; if (hasUpdateTime() != other.hasUpdateTime()) return false; if (hasUpdateTime()) { if (!getUpdateTime().equals(other.getUpdateTime())) return false; } if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); hash = (37 * hash) + NAME_FIELD_NUMBER; hash = (53 * hash) + getName().hashCode(); hash = (37 * hash) + DESCRIPTION_FIELD_NUMBER; hash = (53 * hash) + getDescription().hashCode(); if (hasPlaybook()) { hash = (37 * hash) + PLAYBOOK_FIELD_NUMBER; hash = (53 * hash) + getPlaybook().hashCode(); } if (getExamplesCount() > 0) { hash = (37 * hash) + EXAMPLES_FIELD_NUMBER; hash = (53 * hash) + getExamplesList().hashCode(); } if (hasUpdateTime()) { hash = (37 * hash) + UPDATE_TIME_FIELD_NUMBER; hash = (53 * hash) + getUpdateTime().hashCode(); } hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } public static com.google.cloud.dialogflow.cx.v3beta1.PlaybookVersion parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.google.cloud.dialogflow.cx.v3beta1.PlaybookVersion 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.dialogflow.cx.v3beta1.PlaybookVersion parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.google.cloud.dialogflow.cx.v3beta1.PlaybookVersion 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.dialogflow.cx.v3beta1.PlaybookVersion parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.google.cloud.dialogflow.cx.v3beta1.PlaybookVersion parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.google.cloud.dialogflow.cx.v3beta1.PlaybookVersion parseFrom( java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } public static com.google.cloud.dialogflow.cx.v3beta1.PlaybookVersion 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.dialogflow.cx.v3beta1.PlaybookVersion parseDelimitedFrom( java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } public static com.google.cloud.dialogflow.cx.v3beta1.PlaybookVersion 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.dialogflow.cx.v3beta1.PlaybookVersion parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } public static com.google.cloud.dialogflow.cx.v3beta1.PlaybookVersion 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.dialogflow.cx.v3beta1.PlaybookVersion 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; } /** * * *
   * Playbook version is a snapshot of the playbook at certain timestamp.
   * 
* * Protobuf type {@code google.cloud.dialogflow.cx.v3beta1.PlaybookVersion} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.dialogflow.cx.v3beta1.PlaybookVersion) com.google.cloud.dialogflow.cx.v3beta1.PlaybookVersionOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.cloud.dialogflow.cx.v3beta1.PlaybookProto .internal_static_google_cloud_dialogflow_cx_v3beta1_PlaybookVersion_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.google.cloud.dialogflow.cx.v3beta1.PlaybookProto .internal_static_google_cloud_dialogflow_cx_v3beta1_PlaybookVersion_fieldAccessorTable .ensureFieldAccessorsInitialized( com.google.cloud.dialogflow.cx.v3beta1.PlaybookVersion.class, com.google.cloud.dialogflow.cx.v3beta1.PlaybookVersion.Builder.class); } // Construct using com.google.cloud.dialogflow.cx.v3beta1.PlaybookVersion.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { getPlaybookFieldBuilder(); getExamplesFieldBuilder(); getUpdateTimeFieldBuilder(); } } @java.lang.Override public Builder clear() { super.clear(); bitField0_ = 0; name_ = ""; description_ = ""; playbook_ = null; if (playbookBuilder_ != null) { playbookBuilder_.dispose(); playbookBuilder_ = null; } if (examplesBuilder_ == null) { examples_ = java.util.Collections.emptyList(); } else { examples_ = null; examplesBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000008); updateTime_ = null; if (updateTimeBuilder_ != null) { updateTimeBuilder_.dispose(); updateTimeBuilder_ = null; } return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return com.google.cloud.dialogflow.cx.v3beta1.PlaybookProto .internal_static_google_cloud_dialogflow_cx_v3beta1_PlaybookVersion_descriptor; } @java.lang.Override public com.google.cloud.dialogflow.cx.v3beta1.PlaybookVersion getDefaultInstanceForType() { return com.google.cloud.dialogflow.cx.v3beta1.PlaybookVersion.getDefaultInstance(); } @java.lang.Override public com.google.cloud.dialogflow.cx.v3beta1.PlaybookVersion build() { com.google.cloud.dialogflow.cx.v3beta1.PlaybookVersion result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public com.google.cloud.dialogflow.cx.v3beta1.PlaybookVersion buildPartial() { com.google.cloud.dialogflow.cx.v3beta1.PlaybookVersion result = new com.google.cloud.dialogflow.cx.v3beta1.PlaybookVersion(this); buildPartialRepeatedFields(result); if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } private void buildPartialRepeatedFields( com.google.cloud.dialogflow.cx.v3beta1.PlaybookVersion result) { if (examplesBuilder_ == null) { if (((bitField0_ & 0x00000008) != 0)) { examples_ = java.util.Collections.unmodifiableList(examples_); bitField0_ = (bitField0_ & ~0x00000008); } result.examples_ = examples_; } else { result.examples_ = examplesBuilder_.build(); } } private void buildPartial0(com.google.cloud.dialogflow.cx.v3beta1.PlaybookVersion result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000001) != 0)) { result.name_ = name_; } if (((from_bitField0_ & 0x00000002) != 0)) { result.description_ = description_; } int to_bitField0_ = 0; if (((from_bitField0_ & 0x00000004) != 0)) { result.playbook_ = playbookBuilder_ == null ? playbook_ : playbookBuilder_.build(); to_bitField0_ |= 0x00000001; } if (((from_bitField0_ & 0x00000010) != 0)) { result.updateTime_ = updateTimeBuilder_ == null ? updateTime_ : updateTimeBuilder_.build(); to_bitField0_ |= 0x00000002; } 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.dialogflow.cx.v3beta1.PlaybookVersion) { return mergeFrom((com.google.cloud.dialogflow.cx.v3beta1.PlaybookVersion) other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(com.google.cloud.dialogflow.cx.v3beta1.PlaybookVersion other) { if (other == com.google.cloud.dialogflow.cx.v3beta1.PlaybookVersion.getDefaultInstance()) return this; if (!other.getName().isEmpty()) { name_ = other.name_; bitField0_ |= 0x00000001; onChanged(); } if (!other.getDescription().isEmpty()) { description_ = other.description_; bitField0_ |= 0x00000002; onChanged(); } if (other.hasPlaybook()) { mergePlaybook(other.getPlaybook()); } if (examplesBuilder_ == null) { if (!other.examples_.isEmpty()) { if (examples_.isEmpty()) { examples_ = other.examples_; bitField0_ = (bitField0_ & ~0x00000008); } else { ensureExamplesIsMutable(); examples_.addAll(other.examples_); } onChanged(); } } else { if (!other.examples_.isEmpty()) { if (examplesBuilder_.isEmpty()) { examplesBuilder_.dispose(); examplesBuilder_ = null; examples_ = other.examples_; bitField0_ = (bitField0_ & ~0x00000008); examplesBuilder_ = com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? getExamplesFieldBuilder() : null; } else { examplesBuilder_.addAllMessages(other.examples_); } } } if (other.hasUpdateTime()) { mergeUpdateTime(other.getUpdateTime()); } 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: { description_ = input.readStringRequireUtf8(); bitField0_ |= 0x00000002; break; } // case 18 case 26: { input.readMessage(getPlaybookFieldBuilder().getBuilder(), extensionRegistry); bitField0_ |= 0x00000004; break; } // case 26 case 34: { com.google.cloud.dialogflow.cx.v3beta1.Example m = input.readMessage( com.google.cloud.dialogflow.cx.v3beta1.Example.parser(), extensionRegistry); if (examplesBuilder_ == null) { ensureExamplesIsMutable(); examples_.add(m); } else { examplesBuilder_.addMessage(m); } break; } // case 34 case 42: { input.readMessage(getUpdateTimeFieldBuilder().getBuilder(), extensionRegistry); bitField0_ |= 0x00000010; break; } // case 42 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_ = ""; /** * * *
     * The unique identifier of the playbook version.
     * Format: `projects/<Project ID>/locations/<Location ID>/agents/<Agent
     * ID>/playbooks/<Playbook ID>/versions/<Version ID>`.
     * 
* * string name = 1; * * @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; } } /** * * *
     * The unique identifier of the playbook version.
     * Format: `projects/<Project ID>/locations/<Location ID>/agents/<Agent
     * ID>/playbooks/<Playbook ID>/versions/<Version ID>`.
     * 
* * string name = 1; * * @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; } } /** * * *
     * The unique identifier of the playbook version.
     * Format: `projects/<Project ID>/locations/<Location ID>/agents/<Agent
     * ID>/playbooks/<Playbook ID>/versions/<Version ID>`.
     * 
* * string name = 1; * * @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; } /** * * *
     * The unique identifier of the playbook version.
     * Format: `projects/<Project ID>/locations/<Location ID>/agents/<Agent
     * ID>/playbooks/<Playbook ID>/versions/<Version ID>`.
     * 
* * string name = 1; * * @return This builder for chaining. */ public Builder clearName() { name_ = getDefaultInstance().getName(); bitField0_ = (bitField0_ & ~0x00000001); onChanged(); return this; } /** * * *
     * The unique identifier of the playbook version.
     * Format: `projects/<Project ID>/locations/<Location ID>/agents/<Agent
     * ID>/playbooks/<Playbook ID>/versions/<Version ID>`.
     * 
* * string name = 1; * * @param value The bytes for name to set. * @return This builder for chaining. */ public Builder setNameBytes(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); name_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } private java.lang.Object description_ = ""; /** * * *
     * Optional. The description of the playbook version.
     * 
* * string description = 2 [(.google.api.field_behavior) = OPTIONAL]; * * @return The description. */ public java.lang.String getDescription() { java.lang.Object ref = description_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); description_ = s; return s; } else { return (java.lang.String) ref; } } /** * * *
     * Optional. The description of the playbook version.
     * 
* * string description = 2 [(.google.api.field_behavior) = OPTIONAL]; * * @return The bytes for description. */ public com.google.protobuf.ByteString getDescriptionBytes() { java.lang.Object ref = description_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); description_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** * * *
     * Optional. The description of the playbook version.
     * 
* * string description = 2 [(.google.api.field_behavior) = OPTIONAL]; * * @param value The description to set. * @return This builder for chaining. */ public Builder setDescription(java.lang.String value) { if (value == null) { throw new NullPointerException(); } description_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } /** * * *
     * Optional. The description of the playbook version.
     * 
* * string description = 2 [(.google.api.field_behavior) = OPTIONAL]; * * @return This builder for chaining. */ public Builder clearDescription() { description_ = getDefaultInstance().getDescription(); bitField0_ = (bitField0_ & ~0x00000002); onChanged(); return this; } /** * * *
     * Optional. The description of the playbook version.
     * 
* * string description = 2 [(.google.api.field_behavior) = OPTIONAL]; * * @param value The bytes for description to set. * @return This builder for chaining. */ public Builder setDescriptionBytes(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); description_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } private com.google.cloud.dialogflow.cx.v3beta1.Playbook playbook_; private com.google.protobuf.SingleFieldBuilderV3< com.google.cloud.dialogflow.cx.v3beta1.Playbook, com.google.cloud.dialogflow.cx.v3beta1.Playbook.Builder, com.google.cloud.dialogflow.cx.v3beta1.PlaybookOrBuilder> playbookBuilder_; /** * * *
     * Output only. Snapshot of the playbook when the playbook version is created.
     * 
* * * .google.cloud.dialogflow.cx.v3beta1.Playbook playbook = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * * @return Whether the playbook field is set. */ public boolean hasPlaybook() { return ((bitField0_ & 0x00000004) != 0); } /** * * *
     * Output only. Snapshot of the playbook when the playbook version is created.
     * 
* * * .google.cloud.dialogflow.cx.v3beta1.Playbook playbook = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * * @return The playbook. */ public com.google.cloud.dialogflow.cx.v3beta1.Playbook getPlaybook() { if (playbookBuilder_ == null) { return playbook_ == null ? com.google.cloud.dialogflow.cx.v3beta1.Playbook.getDefaultInstance() : playbook_; } else { return playbookBuilder_.getMessage(); } } /** * * *
     * Output only. Snapshot of the playbook when the playbook version is created.
     * 
* * * .google.cloud.dialogflow.cx.v3beta1.Playbook playbook = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; * */ public Builder setPlaybook(com.google.cloud.dialogflow.cx.v3beta1.Playbook value) { if (playbookBuilder_ == null) { if (value == null) { throw new NullPointerException(); } playbook_ = value; } else { playbookBuilder_.setMessage(value); } bitField0_ |= 0x00000004; onChanged(); return this; } /** * * *
     * Output only. Snapshot of the playbook when the playbook version is created.
     * 
* * * .google.cloud.dialogflow.cx.v3beta1.Playbook playbook = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; * */ public Builder setPlaybook( com.google.cloud.dialogflow.cx.v3beta1.Playbook.Builder builderForValue) { if (playbookBuilder_ == null) { playbook_ = builderForValue.build(); } else { playbookBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000004; onChanged(); return this; } /** * * *
     * Output only. Snapshot of the playbook when the playbook version is created.
     * 
* * * .google.cloud.dialogflow.cx.v3beta1.Playbook playbook = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; * */ public Builder mergePlaybook(com.google.cloud.dialogflow.cx.v3beta1.Playbook value) { if (playbookBuilder_ == null) { if (((bitField0_ & 0x00000004) != 0) && playbook_ != null && playbook_ != com.google.cloud.dialogflow.cx.v3beta1.Playbook.getDefaultInstance()) { getPlaybookBuilder().mergeFrom(value); } else { playbook_ = value; } } else { playbookBuilder_.mergeFrom(value); } if (playbook_ != null) { bitField0_ |= 0x00000004; onChanged(); } return this; } /** * * *
     * Output only. Snapshot of the playbook when the playbook version is created.
     * 
* * * .google.cloud.dialogflow.cx.v3beta1.Playbook playbook = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; * */ public Builder clearPlaybook() { bitField0_ = (bitField0_ & ~0x00000004); playbook_ = null; if (playbookBuilder_ != null) { playbookBuilder_.dispose(); playbookBuilder_ = null; } onChanged(); return this; } /** * * *
     * Output only. Snapshot of the playbook when the playbook version is created.
     * 
* * * .google.cloud.dialogflow.cx.v3beta1.Playbook playbook = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; * */ public com.google.cloud.dialogflow.cx.v3beta1.Playbook.Builder getPlaybookBuilder() { bitField0_ |= 0x00000004; onChanged(); return getPlaybookFieldBuilder().getBuilder(); } /** * * *
     * Output only. Snapshot of the playbook when the playbook version is created.
     * 
* * * .google.cloud.dialogflow.cx.v3beta1.Playbook playbook = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; * */ public com.google.cloud.dialogflow.cx.v3beta1.PlaybookOrBuilder getPlaybookOrBuilder() { if (playbookBuilder_ != null) { return playbookBuilder_.getMessageOrBuilder(); } else { return playbook_ == null ? com.google.cloud.dialogflow.cx.v3beta1.Playbook.getDefaultInstance() : playbook_; } } /** * * *
     * Output only. Snapshot of the playbook when the playbook version is created.
     * 
* * * .google.cloud.dialogflow.cx.v3beta1.Playbook playbook = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; * */ private com.google.protobuf.SingleFieldBuilderV3< com.google.cloud.dialogflow.cx.v3beta1.Playbook, com.google.cloud.dialogflow.cx.v3beta1.Playbook.Builder, com.google.cloud.dialogflow.cx.v3beta1.PlaybookOrBuilder> getPlaybookFieldBuilder() { if (playbookBuilder_ == null) { playbookBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.google.cloud.dialogflow.cx.v3beta1.Playbook, com.google.cloud.dialogflow.cx.v3beta1.Playbook.Builder, com.google.cloud.dialogflow.cx.v3beta1.PlaybookOrBuilder>( getPlaybook(), getParentForChildren(), isClean()); playbook_ = null; } return playbookBuilder_; } private java.util.List examples_ = java.util.Collections.emptyList(); private void ensureExamplesIsMutable() { if (!((bitField0_ & 0x00000008) != 0)) { examples_ = new java.util.ArrayList(examples_); bitField0_ |= 0x00000008; } } private com.google.protobuf.RepeatedFieldBuilderV3< com.google.cloud.dialogflow.cx.v3beta1.Example, com.google.cloud.dialogflow.cx.v3beta1.Example.Builder, com.google.cloud.dialogflow.cx.v3beta1.ExampleOrBuilder> examplesBuilder_; /** * * *
     * Output only. Snapshot of the examples belonging to the playbook when the
     * playbook version is created.
     * 
* * * repeated .google.cloud.dialogflow.cx.v3beta1.Example examples = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; * */ public java.util.List getExamplesList() { if (examplesBuilder_ == null) { return java.util.Collections.unmodifiableList(examples_); } else { return examplesBuilder_.getMessageList(); } } /** * * *
     * Output only. Snapshot of the examples belonging to the playbook when the
     * playbook version is created.
     * 
* * * repeated .google.cloud.dialogflow.cx.v3beta1.Example examples = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; * */ public int getExamplesCount() { if (examplesBuilder_ == null) { return examples_.size(); } else { return examplesBuilder_.getCount(); } } /** * * *
     * Output only. Snapshot of the examples belonging to the playbook when the
     * playbook version is created.
     * 
* * * repeated .google.cloud.dialogflow.cx.v3beta1.Example examples = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; * */ public com.google.cloud.dialogflow.cx.v3beta1.Example getExamples(int index) { if (examplesBuilder_ == null) { return examples_.get(index); } else { return examplesBuilder_.getMessage(index); } } /** * * *
     * Output only. Snapshot of the examples belonging to the playbook when the
     * playbook version is created.
     * 
* * * repeated .google.cloud.dialogflow.cx.v3beta1.Example examples = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; * */ public Builder setExamples(int index, com.google.cloud.dialogflow.cx.v3beta1.Example value) { if (examplesBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureExamplesIsMutable(); examples_.set(index, value); onChanged(); } else { examplesBuilder_.setMessage(index, value); } return this; } /** * * *
     * Output only. Snapshot of the examples belonging to the playbook when the
     * playbook version is created.
     * 
* * * repeated .google.cloud.dialogflow.cx.v3beta1.Example examples = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; * */ public Builder setExamples( int index, com.google.cloud.dialogflow.cx.v3beta1.Example.Builder builderForValue) { if (examplesBuilder_ == null) { ensureExamplesIsMutable(); examples_.set(index, builderForValue.build()); onChanged(); } else { examplesBuilder_.setMessage(index, builderForValue.build()); } return this; } /** * * *
     * Output only. Snapshot of the examples belonging to the playbook when the
     * playbook version is created.
     * 
* * * repeated .google.cloud.dialogflow.cx.v3beta1.Example examples = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; * */ public Builder addExamples(com.google.cloud.dialogflow.cx.v3beta1.Example value) { if (examplesBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureExamplesIsMutable(); examples_.add(value); onChanged(); } else { examplesBuilder_.addMessage(value); } return this; } /** * * *
     * Output only. Snapshot of the examples belonging to the playbook when the
     * playbook version is created.
     * 
* * * repeated .google.cloud.dialogflow.cx.v3beta1.Example examples = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; * */ public Builder addExamples(int index, com.google.cloud.dialogflow.cx.v3beta1.Example value) { if (examplesBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureExamplesIsMutable(); examples_.add(index, value); onChanged(); } else { examplesBuilder_.addMessage(index, value); } return this; } /** * * *
     * Output only. Snapshot of the examples belonging to the playbook when the
     * playbook version is created.
     * 
* * * repeated .google.cloud.dialogflow.cx.v3beta1.Example examples = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; * */ public Builder addExamples( com.google.cloud.dialogflow.cx.v3beta1.Example.Builder builderForValue) { if (examplesBuilder_ == null) { ensureExamplesIsMutable(); examples_.add(builderForValue.build()); onChanged(); } else { examplesBuilder_.addMessage(builderForValue.build()); } return this; } /** * * *
     * Output only. Snapshot of the examples belonging to the playbook when the
     * playbook version is created.
     * 
* * * repeated .google.cloud.dialogflow.cx.v3beta1.Example examples = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; * */ public Builder addExamples( int index, com.google.cloud.dialogflow.cx.v3beta1.Example.Builder builderForValue) { if (examplesBuilder_ == null) { ensureExamplesIsMutable(); examples_.add(index, builderForValue.build()); onChanged(); } else { examplesBuilder_.addMessage(index, builderForValue.build()); } return this; } /** * * *
     * Output only. Snapshot of the examples belonging to the playbook when the
     * playbook version is created.
     * 
* * * repeated .google.cloud.dialogflow.cx.v3beta1.Example examples = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; * */ public Builder addAllExamples( java.lang.Iterable values) { if (examplesBuilder_ == null) { ensureExamplesIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll(values, examples_); onChanged(); } else { examplesBuilder_.addAllMessages(values); } return this; } /** * * *
     * Output only. Snapshot of the examples belonging to the playbook when the
     * playbook version is created.
     * 
* * * repeated .google.cloud.dialogflow.cx.v3beta1.Example examples = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; * */ public Builder clearExamples() { if (examplesBuilder_ == null) { examples_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000008); onChanged(); } else { examplesBuilder_.clear(); } return this; } /** * * *
     * Output only. Snapshot of the examples belonging to the playbook when the
     * playbook version is created.
     * 
* * * repeated .google.cloud.dialogflow.cx.v3beta1.Example examples = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; * */ public Builder removeExamples(int index) { if (examplesBuilder_ == null) { ensureExamplesIsMutable(); examples_.remove(index); onChanged(); } else { examplesBuilder_.remove(index); } return this; } /** * * *
     * Output only. Snapshot of the examples belonging to the playbook when the
     * playbook version is created.
     * 
* * * repeated .google.cloud.dialogflow.cx.v3beta1.Example examples = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; * */ public com.google.cloud.dialogflow.cx.v3beta1.Example.Builder getExamplesBuilder(int index) { return getExamplesFieldBuilder().getBuilder(index); } /** * * *
     * Output only. Snapshot of the examples belonging to the playbook when the
     * playbook version is created.
     * 
* * * repeated .google.cloud.dialogflow.cx.v3beta1.Example examples = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; * */ public com.google.cloud.dialogflow.cx.v3beta1.ExampleOrBuilder getExamplesOrBuilder(int index) { if (examplesBuilder_ == null) { return examples_.get(index); } else { return examplesBuilder_.getMessageOrBuilder(index); } } /** * * *
     * Output only. Snapshot of the examples belonging to the playbook when the
     * playbook version is created.
     * 
* * * repeated .google.cloud.dialogflow.cx.v3beta1.Example examples = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; * */ public java.util.List getExamplesOrBuilderList() { if (examplesBuilder_ != null) { return examplesBuilder_.getMessageOrBuilderList(); } else { return java.util.Collections.unmodifiableList(examples_); } } /** * * *
     * Output only. Snapshot of the examples belonging to the playbook when the
     * playbook version is created.
     * 
* * * repeated .google.cloud.dialogflow.cx.v3beta1.Example examples = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; * */ public com.google.cloud.dialogflow.cx.v3beta1.Example.Builder addExamplesBuilder() { return getExamplesFieldBuilder() .addBuilder(com.google.cloud.dialogflow.cx.v3beta1.Example.getDefaultInstance()); } /** * * *
     * Output only. Snapshot of the examples belonging to the playbook when the
     * playbook version is created.
     * 
* * * repeated .google.cloud.dialogflow.cx.v3beta1.Example examples = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; * */ public com.google.cloud.dialogflow.cx.v3beta1.Example.Builder addExamplesBuilder(int index) { return getExamplesFieldBuilder() .addBuilder(index, com.google.cloud.dialogflow.cx.v3beta1.Example.getDefaultInstance()); } /** * * *
     * Output only. Snapshot of the examples belonging to the playbook when the
     * playbook version is created.
     * 
* * * repeated .google.cloud.dialogflow.cx.v3beta1.Example examples = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; * */ public java.util.List getExamplesBuilderList() { return getExamplesFieldBuilder().getBuilderList(); } private com.google.protobuf.RepeatedFieldBuilderV3< com.google.cloud.dialogflow.cx.v3beta1.Example, com.google.cloud.dialogflow.cx.v3beta1.Example.Builder, com.google.cloud.dialogflow.cx.v3beta1.ExampleOrBuilder> getExamplesFieldBuilder() { if (examplesBuilder_ == null) { examplesBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< com.google.cloud.dialogflow.cx.v3beta1.Example, com.google.cloud.dialogflow.cx.v3beta1.Example.Builder, com.google.cloud.dialogflow.cx.v3beta1.ExampleOrBuilder>( examples_, ((bitField0_ & 0x00000008) != 0), getParentForChildren(), isClean()); examples_ = null; } return examplesBuilder_; } 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. Last time the playbook version was created or modified.
     * 
* * * .google.protobuf.Timestamp update_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * * @return Whether the updateTime field is set. */ public boolean hasUpdateTime() { return ((bitField0_ & 0x00000010) != 0); } /** * * *
     * Output only. Last time the playbook version was created or modified.
     * 
* * * .google.protobuf.Timestamp update_time = 5 [(.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. Last time the playbook version was created or modified.
     * 
* * * .google.protobuf.Timestamp update_time = 5 [(.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_ |= 0x00000010; onChanged(); return this; } /** * * *
     * Output only. Last time the playbook version was created or modified.
     * 
* * * .google.protobuf.Timestamp update_time = 5 [(.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_ |= 0x00000010; onChanged(); return this; } /** * * *
     * Output only. Last time the playbook version was created or modified.
     * 
* * * .google.protobuf.Timestamp update_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; * */ public Builder mergeUpdateTime(com.google.protobuf.Timestamp value) { if (updateTimeBuilder_ == null) { if (((bitField0_ & 0x00000010) != 0) && updateTime_ != null && updateTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { getUpdateTimeBuilder().mergeFrom(value); } else { updateTime_ = value; } } else { updateTimeBuilder_.mergeFrom(value); } if (updateTime_ != null) { bitField0_ |= 0x00000010; onChanged(); } return this; } /** * * *
     * Output only. Last time the playbook version was created or modified.
     * 
* * * .google.protobuf.Timestamp update_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; * */ public Builder clearUpdateTime() { bitField0_ = (bitField0_ & ~0x00000010); updateTime_ = null; if (updateTimeBuilder_ != null) { updateTimeBuilder_.dispose(); updateTimeBuilder_ = null; } onChanged(); return this; } /** * * *
     * Output only. Last time the playbook version was created or modified.
     * 
* * * .google.protobuf.Timestamp update_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; * */ public com.google.protobuf.Timestamp.Builder getUpdateTimeBuilder() { bitField0_ |= 0x00000010; onChanged(); return getUpdateTimeFieldBuilder().getBuilder(); } /** * * *
     * Output only. Last time the playbook version was created or modified.
     * 
* * * .google.protobuf.Timestamp update_time = 5 [(.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. Last time the playbook version was created or modified.
     * 
* * * .google.protobuf.Timestamp update_time = 5 [(.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_; } @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.dialogflow.cx.v3beta1.PlaybookVersion) } // @@protoc_insertion_point(class_scope:google.cloud.dialogflow.cx.v3beta1.PlaybookVersion) private static final com.google.cloud.dialogflow.cx.v3beta1.PlaybookVersion DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.google.cloud.dialogflow.cx.v3beta1.PlaybookVersion(); } public static com.google.cloud.dialogflow.cx.v3beta1.PlaybookVersion getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public PlaybookVersion 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.dialogflow.cx.v3beta1.PlaybookVersion getDefaultInstanceForType() { return DEFAULT_INSTANCE; } }




© 2015 - 2024 Weber Informatics LLC | Privacy Policy