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

com.google.cloud.dialogflow.v2.EnvironmentHistory Maven / Gradle / Ivy

There is a newer version: 4.59.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/v2/environment.proto

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

/**
 *
 *
 * 
 * The response message for
 * [Environments.GetEnvironmentHistory][google.cloud.dialogflow.v2.Environments.GetEnvironmentHistory].
 * 
* * Protobuf type {@code google.cloud.dialogflow.v2.EnvironmentHistory} */ public final class EnvironmentHistory extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.dialogflow.v2.EnvironmentHistory) EnvironmentHistoryOrBuilder { private static final long serialVersionUID = 0L; // Use EnvironmentHistory.newBuilder() to construct. private EnvironmentHistory(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private EnvironmentHistory() { parent_ = ""; entries_ = java.util.Collections.emptyList(); nextPageToken_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new EnvironmentHistory(); } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.cloud.dialogflow.v2.EnvironmentProto .internal_static_google_cloud_dialogflow_v2_EnvironmentHistory_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.google.cloud.dialogflow.v2.EnvironmentProto .internal_static_google_cloud_dialogflow_v2_EnvironmentHistory_fieldAccessorTable .ensureFieldAccessorsInitialized( com.google.cloud.dialogflow.v2.EnvironmentHistory.class, com.google.cloud.dialogflow.v2.EnvironmentHistory.Builder.class); } public interface EntryOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.dialogflow.v2.EnvironmentHistory.Entry) com.google.protobuf.MessageOrBuilder { /** * * *
     * The agent version loaded into this environment history entry.
     * 
* * string agent_version = 1; * * @return The agentVersion. */ java.lang.String getAgentVersion(); /** * * *
     * The agent version loaded into this environment history entry.
     * 
* * string agent_version = 1; * * @return The bytes for agentVersion. */ com.google.protobuf.ByteString getAgentVersionBytes(); /** * * *
     * The developer-provided description for this environment history entry.
     * 
* * string description = 2; * * @return The description. */ java.lang.String getDescription(); /** * * *
     * The developer-provided description for this environment history entry.
     * 
* * string description = 2; * * @return The bytes for description. */ com.google.protobuf.ByteString getDescriptionBytes(); /** * * *
     * The creation time of this environment history entry.
     * 
* * .google.protobuf.Timestamp create_time = 3; * * @return Whether the createTime field is set. */ boolean hasCreateTime(); /** * * *
     * The creation time of this environment history entry.
     * 
* * .google.protobuf.Timestamp create_time = 3; * * @return The createTime. */ com.google.protobuf.Timestamp getCreateTime(); /** * * *
     * The creation time of this environment history entry.
     * 
* * .google.protobuf.Timestamp create_time = 3; */ com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder(); } /** * * *
   * Represents an environment history entry.
   * 
* * Protobuf type {@code google.cloud.dialogflow.v2.EnvironmentHistory.Entry} */ public static final class Entry extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.dialogflow.v2.EnvironmentHistory.Entry) EntryOrBuilder { private static final long serialVersionUID = 0L; // Use Entry.newBuilder() to construct. private Entry(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private Entry() { agentVersion_ = ""; description_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new Entry(); } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.cloud.dialogflow.v2.EnvironmentProto .internal_static_google_cloud_dialogflow_v2_EnvironmentHistory_Entry_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.google.cloud.dialogflow.v2.EnvironmentProto .internal_static_google_cloud_dialogflow_v2_EnvironmentHistory_Entry_fieldAccessorTable .ensureFieldAccessorsInitialized( com.google.cloud.dialogflow.v2.EnvironmentHistory.Entry.class, com.google.cloud.dialogflow.v2.EnvironmentHistory.Entry.Builder.class); } private int bitField0_; public static final int AGENT_VERSION_FIELD_NUMBER = 1; @SuppressWarnings("serial") private volatile java.lang.Object agentVersion_ = ""; /** * * *
     * The agent version loaded into this environment history entry.
     * 
* * string agent_version = 1; * * @return The agentVersion. */ @java.lang.Override public java.lang.String getAgentVersion() { java.lang.Object ref = agentVersion_; 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(); agentVersion_ = s; return s; } } /** * * *
     * The agent version loaded into this environment history entry.
     * 
* * string agent_version = 1; * * @return The bytes for agentVersion. */ @java.lang.Override public com.google.protobuf.ByteString getAgentVersionBytes() { java.lang.Object ref = agentVersion_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); agentVersion_ = 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_ = ""; /** * * *
     * The developer-provided description for this environment history entry.
     * 
* * string description = 2; * * @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; } } /** * * *
     * The developer-provided description for this environment history entry.
     * 
* * string description = 2; * * @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 CREATE_TIME_FIELD_NUMBER = 3; private com.google.protobuf.Timestamp createTime_; /** * * *
     * The creation time of this environment history entry.
     * 
* * .google.protobuf.Timestamp create_time = 3; * * @return Whether the createTime field is set. */ @java.lang.Override public boolean hasCreateTime() { return ((bitField0_ & 0x00000001) != 0); } /** * * *
     * The creation time of this environment history entry.
     * 
* * .google.protobuf.Timestamp create_time = 3; * * @return The createTime. */ @java.lang.Override public com.google.protobuf.Timestamp getCreateTime() { return createTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : createTime_; } /** * * *
     * The creation time of this environment history entry.
     * 
* * .google.protobuf.Timestamp create_time = 3; */ @java.lang.Override public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { return createTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : createTime_; } 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(agentVersion_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, agentVersion_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(description_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 2, description_); } if (((bitField0_ & 0x00000001) != 0)) { output.writeMessage(3, getCreateTime()); } 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(agentVersion_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, agentVersion_); } 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, getCreateTime()); } 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.v2.EnvironmentHistory.Entry)) { return super.equals(obj); } com.google.cloud.dialogflow.v2.EnvironmentHistory.Entry other = (com.google.cloud.dialogflow.v2.EnvironmentHistory.Entry) obj; if (!getAgentVersion().equals(other.getAgentVersion())) return false; if (!getDescription().equals(other.getDescription())) return false; if (hasCreateTime() != other.hasCreateTime()) return false; if (hasCreateTime()) { if (!getCreateTime().equals(other.getCreateTime())) 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) + AGENT_VERSION_FIELD_NUMBER; hash = (53 * hash) + getAgentVersion().hashCode(); hash = (37 * hash) + DESCRIPTION_FIELD_NUMBER; hash = (53 * hash) + getDescription().hashCode(); if (hasCreateTime()) { hash = (37 * hash) + CREATE_TIME_FIELD_NUMBER; hash = (53 * hash) + getCreateTime().hashCode(); } hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } public static com.google.cloud.dialogflow.v2.EnvironmentHistory.Entry parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.google.cloud.dialogflow.v2.EnvironmentHistory.Entry 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.v2.EnvironmentHistory.Entry parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.google.cloud.dialogflow.v2.EnvironmentHistory.Entry 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.v2.EnvironmentHistory.Entry parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.google.cloud.dialogflow.v2.EnvironmentHistory.Entry parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.google.cloud.dialogflow.v2.EnvironmentHistory.Entry parseFrom( java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } public static com.google.cloud.dialogflow.v2.EnvironmentHistory.Entry 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.v2.EnvironmentHistory.Entry parseDelimitedFrom( java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } public static com.google.cloud.dialogflow.v2.EnvironmentHistory.Entry 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.v2.EnvironmentHistory.Entry parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } public static com.google.cloud.dialogflow.v2.EnvironmentHistory.Entry 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.v2.EnvironmentHistory.Entry 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; } /** * * *
     * Represents an environment history entry.
     * 
* * Protobuf type {@code google.cloud.dialogflow.v2.EnvironmentHistory.Entry} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.dialogflow.v2.EnvironmentHistory.Entry) com.google.cloud.dialogflow.v2.EnvironmentHistory.EntryOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.cloud.dialogflow.v2.EnvironmentProto .internal_static_google_cloud_dialogflow_v2_EnvironmentHistory_Entry_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.google.cloud.dialogflow.v2.EnvironmentProto .internal_static_google_cloud_dialogflow_v2_EnvironmentHistory_Entry_fieldAccessorTable .ensureFieldAccessorsInitialized( com.google.cloud.dialogflow.v2.EnvironmentHistory.Entry.class, com.google.cloud.dialogflow.v2.EnvironmentHistory.Entry.Builder.class); } // Construct using com.google.cloud.dialogflow.v2.EnvironmentHistory.Entry.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { getCreateTimeFieldBuilder(); } } @java.lang.Override public Builder clear() { super.clear(); bitField0_ = 0; agentVersion_ = ""; description_ = ""; createTime_ = null; if (createTimeBuilder_ != null) { createTimeBuilder_.dispose(); createTimeBuilder_ = null; } return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return com.google.cloud.dialogflow.v2.EnvironmentProto .internal_static_google_cloud_dialogflow_v2_EnvironmentHistory_Entry_descriptor; } @java.lang.Override public com.google.cloud.dialogflow.v2.EnvironmentHistory.Entry getDefaultInstanceForType() { return com.google.cloud.dialogflow.v2.EnvironmentHistory.Entry.getDefaultInstance(); } @java.lang.Override public com.google.cloud.dialogflow.v2.EnvironmentHistory.Entry build() { com.google.cloud.dialogflow.v2.EnvironmentHistory.Entry result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public com.google.cloud.dialogflow.v2.EnvironmentHistory.Entry buildPartial() { com.google.cloud.dialogflow.v2.EnvironmentHistory.Entry result = new com.google.cloud.dialogflow.v2.EnvironmentHistory.Entry(this); if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } private void buildPartial0(com.google.cloud.dialogflow.v2.EnvironmentHistory.Entry result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000001) != 0)) { result.agentVersion_ = agentVersion_; } if (((from_bitField0_ & 0x00000002) != 0)) { result.description_ = description_; } int to_bitField0_ = 0; if (((from_bitField0_ & 0x00000004) != 0)) { result.createTime_ = createTimeBuilder_ == null ? createTime_ : createTimeBuilder_.build(); to_bitField0_ |= 0x00000001; } 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.v2.EnvironmentHistory.Entry) { return mergeFrom((com.google.cloud.dialogflow.v2.EnvironmentHistory.Entry) other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(com.google.cloud.dialogflow.v2.EnvironmentHistory.Entry other) { if (other == com.google.cloud.dialogflow.v2.EnvironmentHistory.Entry.getDefaultInstance()) return this; if (!other.getAgentVersion().isEmpty()) { agentVersion_ = other.agentVersion_; bitField0_ |= 0x00000001; onChanged(); } if (!other.getDescription().isEmpty()) { description_ = other.description_; bitField0_ |= 0x00000002; onChanged(); } if (other.hasCreateTime()) { mergeCreateTime(other.getCreateTime()); } 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: { agentVersion_ = input.readStringRequireUtf8(); bitField0_ |= 0x00000001; break; } // case 10 case 18: { description_ = input.readStringRequireUtf8(); bitField0_ |= 0x00000002; break; } // case 18 case 26: { input.readMessage(getCreateTimeFieldBuilder().getBuilder(), extensionRegistry); bitField0_ |= 0x00000004; break; } // case 26 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { done = true; // was an endgroup tag } break; } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.unwrapIOException(); } finally { onChanged(); } // finally return this; } private int bitField0_; private java.lang.Object agentVersion_ = ""; /** * * *
       * The agent version loaded into this environment history entry.
       * 
* * string agent_version = 1; * * @return The agentVersion. */ public java.lang.String getAgentVersion() { java.lang.Object ref = agentVersion_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); agentVersion_ = s; return s; } else { return (java.lang.String) ref; } } /** * * *
       * The agent version loaded into this environment history entry.
       * 
* * string agent_version = 1; * * @return The bytes for agentVersion. */ public com.google.protobuf.ByteString getAgentVersionBytes() { java.lang.Object ref = agentVersion_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); agentVersion_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** * * *
       * The agent version loaded into this environment history entry.
       * 
* * string agent_version = 1; * * @param value The agentVersion to set. * @return This builder for chaining. */ public Builder setAgentVersion(java.lang.String value) { if (value == null) { throw new NullPointerException(); } agentVersion_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** * * *
       * The agent version loaded into this environment history entry.
       * 
* * string agent_version = 1; * * @return This builder for chaining. */ public Builder clearAgentVersion() { agentVersion_ = getDefaultInstance().getAgentVersion(); bitField0_ = (bitField0_ & ~0x00000001); onChanged(); return this; } /** * * *
       * The agent version loaded into this environment history entry.
       * 
* * string agent_version = 1; * * @param value The bytes for agentVersion to set. * @return This builder for chaining. */ public Builder setAgentVersionBytes(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); agentVersion_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } private java.lang.Object description_ = ""; /** * * *
       * The developer-provided description for this environment history entry.
       * 
* * string description = 2; * * @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; } } /** * * *
       * The developer-provided description for this environment history entry.
       * 
* * string description = 2; * * @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; } } /** * * *
       * The developer-provided description for this environment history entry.
       * 
* * string description = 2; * * @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; } /** * * *
       * The developer-provided description for this environment history entry.
       * 
* * string description = 2; * * @return This builder for chaining. */ public Builder clearDescription() { description_ = getDefaultInstance().getDescription(); bitField0_ = (bitField0_ & ~0x00000002); onChanged(); return this; } /** * * *
       * The developer-provided description for this environment history entry.
       * 
* * string description = 2; * * @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.protobuf.Timestamp createTime_; private com.google.protobuf.SingleFieldBuilderV3< com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> createTimeBuilder_; /** * * *
       * The creation time of this environment history entry.
       * 
* * .google.protobuf.Timestamp create_time = 3; * * @return Whether the createTime field is set. */ public boolean hasCreateTime() { return ((bitField0_ & 0x00000004) != 0); } /** * * *
       * The creation time of this environment history entry.
       * 
* * .google.protobuf.Timestamp create_time = 3; * * @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(); } } /** * * *
       * The creation time of this environment history entry.
       * 
* * .google.protobuf.Timestamp create_time = 3; */ public Builder setCreateTime(com.google.protobuf.Timestamp value) { if (createTimeBuilder_ == null) { if (value == null) { throw new NullPointerException(); } createTime_ = value; } else { createTimeBuilder_.setMessage(value); } bitField0_ |= 0x00000004; onChanged(); return this; } /** * * *
       * The creation time of this environment history entry.
       * 
* * .google.protobuf.Timestamp create_time = 3; */ public Builder setCreateTime(com.google.protobuf.Timestamp.Builder builderForValue) { if (createTimeBuilder_ == null) { createTime_ = builderForValue.build(); } else { createTimeBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000004; onChanged(); return this; } /** * * *
       * The creation time of this environment history entry.
       * 
* * .google.protobuf.Timestamp create_time = 3; */ public Builder mergeCreateTime(com.google.protobuf.Timestamp value) { if (createTimeBuilder_ == null) { if (((bitField0_ & 0x00000004) != 0) && createTime_ != null && createTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { getCreateTimeBuilder().mergeFrom(value); } else { createTime_ = value; } } else { createTimeBuilder_.mergeFrom(value); } if (createTime_ != null) { bitField0_ |= 0x00000004; onChanged(); } return this; } /** * * *
       * The creation time of this environment history entry.
       * 
* * .google.protobuf.Timestamp create_time = 3; */ public Builder clearCreateTime() { bitField0_ = (bitField0_ & ~0x00000004); createTime_ = null; if (createTimeBuilder_ != null) { createTimeBuilder_.dispose(); createTimeBuilder_ = null; } onChanged(); return this; } /** * * *
       * The creation time of this environment history entry.
       * 
* * .google.protobuf.Timestamp create_time = 3; */ public com.google.protobuf.Timestamp.Builder getCreateTimeBuilder() { bitField0_ |= 0x00000004; onChanged(); return getCreateTimeFieldBuilder().getBuilder(); } /** * * *
       * The creation time of this environment history entry.
       * 
* * .google.protobuf.Timestamp create_time = 3; */ public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { if (createTimeBuilder_ != null) { return createTimeBuilder_.getMessageOrBuilder(); } else { return createTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : createTime_; } } /** * * *
       * The creation time of this environment history entry.
       * 
* * .google.protobuf.Timestamp create_time = 3; */ 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_; } @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.v2.EnvironmentHistory.Entry) } // @@protoc_insertion_point(class_scope:google.cloud.dialogflow.v2.EnvironmentHistory.Entry) private static final com.google.cloud.dialogflow.v2.EnvironmentHistory.Entry DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.google.cloud.dialogflow.v2.EnvironmentHistory.Entry(); } public static com.google.cloud.dialogflow.v2.EnvironmentHistory.Entry getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public Entry 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.v2.EnvironmentHistory.Entry getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public static final int PARENT_FIELD_NUMBER = 1; @SuppressWarnings("serial") private volatile java.lang.Object parent_ = ""; /** * * *
   * Output only. The name of the environment this history is for.
   * Supported formats:
   *
   * - `projects/<Project ID>/agent/environments/<Environment ID>`
   * - `projects/<Project ID>/locations/<Location
   *    ID>/agent/environments/<Environment ID>`
   *
   * The environment ID for the default environment is `-`.
   * 
* * string parent = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * @return The parent. */ @java.lang.Override public java.lang.String getParent() { java.lang.Object ref = parent_; 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(); parent_ = s; return s; } } /** * * *
   * Output only. The name of the environment this history is for.
   * Supported formats:
   *
   * - `projects/<Project ID>/agent/environments/<Environment ID>`
   * - `projects/<Project ID>/locations/<Location
   *    ID>/agent/environments/<Environment ID>`
   *
   * The environment ID for the default environment is `-`.
   * 
* * string parent = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * @return The bytes for parent. */ @java.lang.Override public com.google.protobuf.ByteString getParentBytes() { java.lang.Object ref = parent_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); parent_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int ENTRIES_FIELD_NUMBER = 2; @SuppressWarnings("serial") private java.util.List entries_; /** * * *
   * Output only. The list of agent environments. There will be a maximum number
   * of items returned based on the page_size field in the request.
   * 
* * * repeated .google.cloud.dialogflow.v2.EnvironmentHistory.Entry entries = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; * */ @java.lang.Override public java.util.List getEntriesList() { return entries_; } /** * * *
   * Output only. The list of agent environments. There will be a maximum number
   * of items returned based on the page_size field in the request.
   * 
* * * repeated .google.cloud.dialogflow.v2.EnvironmentHistory.Entry entries = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; * */ @java.lang.Override public java.util.List getEntriesOrBuilderList() { return entries_; } /** * * *
   * Output only. The list of agent environments. There will be a maximum number
   * of items returned based on the page_size field in the request.
   * 
* * * repeated .google.cloud.dialogflow.v2.EnvironmentHistory.Entry entries = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; * */ @java.lang.Override public int getEntriesCount() { return entries_.size(); } /** * * *
   * Output only. The list of agent environments. There will be a maximum number
   * of items returned based on the page_size field in the request.
   * 
* * * repeated .google.cloud.dialogflow.v2.EnvironmentHistory.Entry entries = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; * */ @java.lang.Override public com.google.cloud.dialogflow.v2.EnvironmentHistory.Entry getEntries(int index) { return entries_.get(index); } /** * * *
   * Output only. The list of agent environments. There will be a maximum number
   * of items returned based on the page_size field in the request.
   * 
* * * repeated .google.cloud.dialogflow.v2.EnvironmentHistory.Entry entries = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; * */ @java.lang.Override public com.google.cloud.dialogflow.v2.EnvironmentHistory.EntryOrBuilder getEntriesOrBuilder( int index) { return entries_.get(index); } public static final int NEXT_PAGE_TOKEN_FIELD_NUMBER = 3; @SuppressWarnings("serial") private volatile java.lang.Object nextPageToken_ = ""; /** * * *
   * Output only. Token to retrieve the next page of results, or empty if there
   * are no more results in the list.
   * 
* * string next_page_token = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * @return The nextPageToken. */ @java.lang.Override public java.lang.String getNextPageToken() { java.lang.Object ref = nextPageToken_; 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(); nextPageToken_ = s; return s; } } /** * * *
   * Output only. Token to retrieve the next page of results, or empty if there
   * are no more results in the list.
   * 
* * string next_page_token = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * @return The bytes for nextPageToken. */ @java.lang.Override public com.google.protobuf.ByteString getNextPageTokenBytes() { java.lang.Object ref = nextPageToken_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); nextPageToken_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } private byte memoizedIsInitialized = -1; @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; if (isInitialized == 0) return false; memoizedIsInitialized = 1; return true; } @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parent_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, parent_); } for (int i = 0; i < entries_.size(); i++) { output.writeMessage(2, entries_.get(i)); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(nextPageToken_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 3, nextPageToken_); } 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(parent_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, parent_); } for (int i = 0; i < entries_.size(); i++) { size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, entries_.get(i)); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(nextPageToken_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, nextPageToken_); } 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.v2.EnvironmentHistory)) { return super.equals(obj); } com.google.cloud.dialogflow.v2.EnvironmentHistory other = (com.google.cloud.dialogflow.v2.EnvironmentHistory) obj; if (!getParent().equals(other.getParent())) return false; if (!getEntriesList().equals(other.getEntriesList())) return false; if (!getNextPageToken().equals(other.getNextPageToken())) 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) + PARENT_FIELD_NUMBER; hash = (53 * hash) + getParent().hashCode(); if (getEntriesCount() > 0) { hash = (37 * hash) + ENTRIES_FIELD_NUMBER; hash = (53 * hash) + getEntriesList().hashCode(); } hash = (37 * hash) + NEXT_PAGE_TOKEN_FIELD_NUMBER; hash = (53 * hash) + getNextPageToken().hashCode(); hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } public static com.google.cloud.dialogflow.v2.EnvironmentHistory parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.google.cloud.dialogflow.v2.EnvironmentHistory 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.v2.EnvironmentHistory parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.google.cloud.dialogflow.v2.EnvironmentHistory 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.v2.EnvironmentHistory parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.google.cloud.dialogflow.v2.EnvironmentHistory parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.google.cloud.dialogflow.v2.EnvironmentHistory parseFrom( java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } public static com.google.cloud.dialogflow.v2.EnvironmentHistory 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.v2.EnvironmentHistory parseDelimitedFrom( java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } public static com.google.cloud.dialogflow.v2.EnvironmentHistory 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.v2.EnvironmentHistory parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } public static com.google.cloud.dialogflow.v2.EnvironmentHistory 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.v2.EnvironmentHistory prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } @java.lang.Override public Builder toBuilder() { return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** * * *
   * The response message for
   * [Environments.GetEnvironmentHistory][google.cloud.dialogflow.v2.Environments.GetEnvironmentHistory].
   * 
* * Protobuf type {@code google.cloud.dialogflow.v2.EnvironmentHistory} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.dialogflow.v2.EnvironmentHistory) com.google.cloud.dialogflow.v2.EnvironmentHistoryOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.cloud.dialogflow.v2.EnvironmentProto .internal_static_google_cloud_dialogflow_v2_EnvironmentHistory_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.google.cloud.dialogflow.v2.EnvironmentProto .internal_static_google_cloud_dialogflow_v2_EnvironmentHistory_fieldAccessorTable .ensureFieldAccessorsInitialized( com.google.cloud.dialogflow.v2.EnvironmentHistory.class, com.google.cloud.dialogflow.v2.EnvironmentHistory.Builder.class); } // Construct using com.google.cloud.dialogflow.v2.EnvironmentHistory.newBuilder() private Builder() {} private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); } @java.lang.Override public Builder clear() { super.clear(); bitField0_ = 0; parent_ = ""; if (entriesBuilder_ == null) { entries_ = java.util.Collections.emptyList(); } else { entries_ = null; entriesBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000002); nextPageToken_ = ""; return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return com.google.cloud.dialogflow.v2.EnvironmentProto .internal_static_google_cloud_dialogflow_v2_EnvironmentHistory_descriptor; } @java.lang.Override public com.google.cloud.dialogflow.v2.EnvironmentHistory getDefaultInstanceForType() { return com.google.cloud.dialogflow.v2.EnvironmentHistory.getDefaultInstance(); } @java.lang.Override public com.google.cloud.dialogflow.v2.EnvironmentHistory build() { com.google.cloud.dialogflow.v2.EnvironmentHistory result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public com.google.cloud.dialogflow.v2.EnvironmentHistory buildPartial() { com.google.cloud.dialogflow.v2.EnvironmentHistory result = new com.google.cloud.dialogflow.v2.EnvironmentHistory(this); buildPartialRepeatedFields(result); if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } private void buildPartialRepeatedFields( com.google.cloud.dialogflow.v2.EnvironmentHistory result) { if (entriesBuilder_ == null) { if (((bitField0_ & 0x00000002) != 0)) { entries_ = java.util.Collections.unmodifiableList(entries_); bitField0_ = (bitField0_ & ~0x00000002); } result.entries_ = entries_; } else { result.entries_ = entriesBuilder_.build(); } } private void buildPartial0(com.google.cloud.dialogflow.v2.EnvironmentHistory result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000001) != 0)) { result.parent_ = parent_; } if (((from_bitField0_ & 0x00000004) != 0)) { result.nextPageToken_ = nextPageToken_; } } @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.v2.EnvironmentHistory) { return mergeFrom((com.google.cloud.dialogflow.v2.EnvironmentHistory) other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(com.google.cloud.dialogflow.v2.EnvironmentHistory other) { if (other == com.google.cloud.dialogflow.v2.EnvironmentHistory.getDefaultInstance()) return this; if (!other.getParent().isEmpty()) { parent_ = other.parent_; bitField0_ |= 0x00000001; onChanged(); } if (entriesBuilder_ == null) { if (!other.entries_.isEmpty()) { if (entries_.isEmpty()) { entries_ = other.entries_; bitField0_ = (bitField0_ & ~0x00000002); } else { ensureEntriesIsMutable(); entries_.addAll(other.entries_); } onChanged(); } } else { if (!other.entries_.isEmpty()) { if (entriesBuilder_.isEmpty()) { entriesBuilder_.dispose(); entriesBuilder_ = null; entries_ = other.entries_; bitField0_ = (bitField0_ & ~0x00000002); entriesBuilder_ = com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? getEntriesFieldBuilder() : null; } else { entriesBuilder_.addAllMessages(other.entries_); } } } if (!other.getNextPageToken().isEmpty()) { nextPageToken_ = other.nextPageToken_; bitField0_ |= 0x00000004; onChanged(); } this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; } @java.lang.Override public final boolean isInitialized() { return true; } @java.lang.Override public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; case 10: { parent_ = input.readStringRequireUtf8(); bitField0_ |= 0x00000001; break; } // case 10 case 18: { com.google.cloud.dialogflow.v2.EnvironmentHistory.Entry m = input.readMessage( com.google.cloud.dialogflow.v2.EnvironmentHistory.Entry.parser(), extensionRegistry); if (entriesBuilder_ == null) { ensureEntriesIsMutable(); entries_.add(m); } else { entriesBuilder_.addMessage(m); } break; } // case 18 case 26: { nextPageToken_ = input.readStringRequireUtf8(); bitField0_ |= 0x00000004; break; } // case 26 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { done = true; // was an endgroup tag } break; } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.unwrapIOException(); } finally { onChanged(); } // finally return this; } private int bitField0_; private java.lang.Object parent_ = ""; /** * * *
     * Output only. The name of the environment this history is for.
     * Supported formats:
     *
     * - `projects/<Project ID>/agent/environments/<Environment ID>`
     * - `projects/<Project ID>/locations/<Location
     *    ID>/agent/environments/<Environment ID>`
     *
     * The environment ID for the default environment is `-`.
     * 
* * string parent = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * @return The parent. */ public java.lang.String getParent() { java.lang.Object ref = parent_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); parent_ = s; return s; } else { return (java.lang.String) ref; } } /** * * *
     * Output only. The name of the environment this history is for.
     * Supported formats:
     *
     * - `projects/<Project ID>/agent/environments/<Environment ID>`
     * - `projects/<Project ID>/locations/<Location
     *    ID>/agent/environments/<Environment ID>`
     *
     * The environment ID for the default environment is `-`.
     * 
* * string parent = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * @return The bytes for parent. */ public com.google.protobuf.ByteString getParentBytes() { java.lang.Object ref = parent_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); parent_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** * * *
     * Output only. The name of the environment this history is for.
     * Supported formats:
     *
     * - `projects/<Project ID>/agent/environments/<Environment ID>`
     * - `projects/<Project ID>/locations/<Location
     *    ID>/agent/environments/<Environment ID>`
     *
     * The environment ID for the default environment is `-`.
     * 
* * string parent = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * @param value The parent to set. * @return This builder for chaining. */ public Builder setParent(java.lang.String value) { if (value == null) { throw new NullPointerException(); } parent_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** * * *
     * Output only. The name of the environment this history is for.
     * Supported formats:
     *
     * - `projects/<Project ID>/agent/environments/<Environment ID>`
     * - `projects/<Project ID>/locations/<Location
     *    ID>/agent/environments/<Environment ID>`
     *
     * The environment ID for the default environment is `-`.
     * 
* * string parent = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * @return This builder for chaining. */ public Builder clearParent() { parent_ = getDefaultInstance().getParent(); bitField0_ = (bitField0_ & ~0x00000001); onChanged(); return this; } /** * * *
     * Output only. The name of the environment this history is for.
     * Supported formats:
     *
     * - `projects/<Project ID>/agent/environments/<Environment ID>`
     * - `projects/<Project ID>/locations/<Location
     *    ID>/agent/environments/<Environment ID>`
     *
     * The environment ID for the default environment is `-`.
     * 
* * string parent = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * @param value The bytes for parent to set. * @return This builder for chaining. */ public Builder setParentBytes(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); parent_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } private java.util.List entries_ = java.util.Collections.emptyList(); private void ensureEntriesIsMutable() { if (!((bitField0_ & 0x00000002) != 0)) { entries_ = new java.util.ArrayList( entries_); bitField0_ |= 0x00000002; } } private com.google.protobuf.RepeatedFieldBuilderV3< com.google.cloud.dialogflow.v2.EnvironmentHistory.Entry, com.google.cloud.dialogflow.v2.EnvironmentHistory.Entry.Builder, com.google.cloud.dialogflow.v2.EnvironmentHistory.EntryOrBuilder> entriesBuilder_; /** * * *
     * Output only. The list of agent environments. There will be a maximum number
     * of items returned based on the page_size field in the request.
     * 
* * * repeated .google.cloud.dialogflow.v2.EnvironmentHistory.Entry entries = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; * */ public java.util.List getEntriesList() { if (entriesBuilder_ == null) { return java.util.Collections.unmodifiableList(entries_); } else { return entriesBuilder_.getMessageList(); } } /** * * *
     * Output only. The list of agent environments. There will be a maximum number
     * of items returned based on the page_size field in the request.
     * 
* * * repeated .google.cloud.dialogflow.v2.EnvironmentHistory.Entry entries = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; * */ public int getEntriesCount() { if (entriesBuilder_ == null) { return entries_.size(); } else { return entriesBuilder_.getCount(); } } /** * * *
     * Output only. The list of agent environments. There will be a maximum number
     * of items returned based on the page_size field in the request.
     * 
* * * repeated .google.cloud.dialogflow.v2.EnvironmentHistory.Entry entries = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; * */ public com.google.cloud.dialogflow.v2.EnvironmentHistory.Entry getEntries(int index) { if (entriesBuilder_ == null) { return entries_.get(index); } else { return entriesBuilder_.getMessage(index); } } /** * * *
     * Output only. The list of agent environments. There will be a maximum number
     * of items returned based on the page_size field in the request.
     * 
* * * repeated .google.cloud.dialogflow.v2.EnvironmentHistory.Entry entries = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; * */ public Builder setEntries( int index, com.google.cloud.dialogflow.v2.EnvironmentHistory.Entry value) { if (entriesBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureEntriesIsMutable(); entries_.set(index, value); onChanged(); } else { entriesBuilder_.setMessage(index, value); } return this; } /** * * *
     * Output only. The list of agent environments. There will be a maximum number
     * of items returned based on the page_size field in the request.
     * 
* * * repeated .google.cloud.dialogflow.v2.EnvironmentHistory.Entry entries = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; * */ public Builder setEntries( int index, com.google.cloud.dialogflow.v2.EnvironmentHistory.Entry.Builder builderForValue) { if (entriesBuilder_ == null) { ensureEntriesIsMutable(); entries_.set(index, builderForValue.build()); onChanged(); } else { entriesBuilder_.setMessage(index, builderForValue.build()); } return this; } /** * * *
     * Output only. The list of agent environments. There will be a maximum number
     * of items returned based on the page_size field in the request.
     * 
* * * repeated .google.cloud.dialogflow.v2.EnvironmentHistory.Entry entries = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; * */ public Builder addEntries(com.google.cloud.dialogflow.v2.EnvironmentHistory.Entry value) { if (entriesBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureEntriesIsMutable(); entries_.add(value); onChanged(); } else { entriesBuilder_.addMessage(value); } return this; } /** * * *
     * Output only. The list of agent environments. There will be a maximum number
     * of items returned based on the page_size field in the request.
     * 
* * * repeated .google.cloud.dialogflow.v2.EnvironmentHistory.Entry entries = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; * */ public Builder addEntries( int index, com.google.cloud.dialogflow.v2.EnvironmentHistory.Entry value) { if (entriesBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureEntriesIsMutable(); entries_.add(index, value); onChanged(); } else { entriesBuilder_.addMessage(index, value); } return this; } /** * * *
     * Output only. The list of agent environments. There will be a maximum number
     * of items returned based on the page_size field in the request.
     * 
* * * repeated .google.cloud.dialogflow.v2.EnvironmentHistory.Entry entries = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; * */ public Builder addEntries( com.google.cloud.dialogflow.v2.EnvironmentHistory.Entry.Builder builderForValue) { if (entriesBuilder_ == null) { ensureEntriesIsMutable(); entries_.add(builderForValue.build()); onChanged(); } else { entriesBuilder_.addMessage(builderForValue.build()); } return this; } /** * * *
     * Output only. The list of agent environments. There will be a maximum number
     * of items returned based on the page_size field in the request.
     * 
* * * repeated .google.cloud.dialogflow.v2.EnvironmentHistory.Entry entries = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; * */ public Builder addEntries( int index, com.google.cloud.dialogflow.v2.EnvironmentHistory.Entry.Builder builderForValue) { if (entriesBuilder_ == null) { ensureEntriesIsMutable(); entries_.add(index, builderForValue.build()); onChanged(); } else { entriesBuilder_.addMessage(index, builderForValue.build()); } return this; } /** * * *
     * Output only. The list of agent environments. There will be a maximum number
     * of items returned based on the page_size field in the request.
     * 
* * * repeated .google.cloud.dialogflow.v2.EnvironmentHistory.Entry entries = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; * */ public Builder addAllEntries( java.lang.Iterable values) { if (entriesBuilder_ == null) { ensureEntriesIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll(values, entries_); onChanged(); } else { entriesBuilder_.addAllMessages(values); } return this; } /** * * *
     * Output only. The list of agent environments. There will be a maximum number
     * of items returned based on the page_size field in the request.
     * 
* * * repeated .google.cloud.dialogflow.v2.EnvironmentHistory.Entry entries = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; * */ public Builder clearEntries() { if (entriesBuilder_ == null) { entries_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000002); onChanged(); } else { entriesBuilder_.clear(); } return this; } /** * * *
     * Output only. The list of agent environments. There will be a maximum number
     * of items returned based on the page_size field in the request.
     * 
* * * repeated .google.cloud.dialogflow.v2.EnvironmentHistory.Entry entries = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; * */ public Builder removeEntries(int index) { if (entriesBuilder_ == null) { ensureEntriesIsMutable(); entries_.remove(index); onChanged(); } else { entriesBuilder_.remove(index); } return this; } /** * * *
     * Output only. The list of agent environments. There will be a maximum number
     * of items returned based on the page_size field in the request.
     * 
* * * repeated .google.cloud.dialogflow.v2.EnvironmentHistory.Entry entries = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; * */ public com.google.cloud.dialogflow.v2.EnvironmentHistory.Entry.Builder getEntriesBuilder( int index) { return getEntriesFieldBuilder().getBuilder(index); } /** * * *
     * Output only. The list of agent environments. There will be a maximum number
     * of items returned based on the page_size field in the request.
     * 
* * * repeated .google.cloud.dialogflow.v2.EnvironmentHistory.Entry entries = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; * */ public com.google.cloud.dialogflow.v2.EnvironmentHistory.EntryOrBuilder getEntriesOrBuilder( int index) { if (entriesBuilder_ == null) { return entries_.get(index); } else { return entriesBuilder_.getMessageOrBuilder(index); } } /** * * *
     * Output only. The list of agent environments. There will be a maximum number
     * of items returned based on the page_size field in the request.
     * 
* * * repeated .google.cloud.dialogflow.v2.EnvironmentHistory.Entry entries = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; * */ public java.util.List< ? extends com.google.cloud.dialogflow.v2.EnvironmentHistory.EntryOrBuilder> getEntriesOrBuilderList() { if (entriesBuilder_ != null) { return entriesBuilder_.getMessageOrBuilderList(); } else { return java.util.Collections.unmodifiableList(entries_); } } /** * * *
     * Output only. The list of agent environments. There will be a maximum number
     * of items returned based on the page_size field in the request.
     * 
* * * repeated .google.cloud.dialogflow.v2.EnvironmentHistory.Entry entries = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; * */ public com.google.cloud.dialogflow.v2.EnvironmentHistory.Entry.Builder addEntriesBuilder() { return getEntriesFieldBuilder() .addBuilder(com.google.cloud.dialogflow.v2.EnvironmentHistory.Entry.getDefaultInstance()); } /** * * *
     * Output only. The list of agent environments. There will be a maximum number
     * of items returned based on the page_size field in the request.
     * 
* * * repeated .google.cloud.dialogflow.v2.EnvironmentHistory.Entry entries = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; * */ public com.google.cloud.dialogflow.v2.EnvironmentHistory.Entry.Builder addEntriesBuilder( int index) { return getEntriesFieldBuilder() .addBuilder( index, com.google.cloud.dialogflow.v2.EnvironmentHistory.Entry.getDefaultInstance()); } /** * * *
     * Output only. The list of agent environments. There will be a maximum number
     * of items returned based on the page_size field in the request.
     * 
* * * repeated .google.cloud.dialogflow.v2.EnvironmentHistory.Entry entries = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; * */ public java.util.List getEntriesBuilderList() { return getEntriesFieldBuilder().getBuilderList(); } private com.google.protobuf.RepeatedFieldBuilderV3< com.google.cloud.dialogflow.v2.EnvironmentHistory.Entry, com.google.cloud.dialogflow.v2.EnvironmentHistory.Entry.Builder, com.google.cloud.dialogflow.v2.EnvironmentHistory.EntryOrBuilder> getEntriesFieldBuilder() { if (entriesBuilder_ == null) { entriesBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< com.google.cloud.dialogflow.v2.EnvironmentHistory.Entry, com.google.cloud.dialogflow.v2.EnvironmentHistory.Entry.Builder, com.google.cloud.dialogflow.v2.EnvironmentHistory.EntryOrBuilder>( entries_, ((bitField0_ & 0x00000002) != 0), getParentForChildren(), isClean()); entries_ = null; } return entriesBuilder_; } private java.lang.Object nextPageToken_ = ""; /** * * *
     * Output only. Token to retrieve the next page of results, or empty if there
     * are no more results in the list.
     * 
* * string next_page_token = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * @return The nextPageToken. */ public java.lang.String getNextPageToken() { java.lang.Object ref = nextPageToken_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); nextPageToken_ = s; return s; } else { return (java.lang.String) ref; } } /** * * *
     * Output only. Token to retrieve the next page of results, or empty if there
     * are no more results in the list.
     * 
* * string next_page_token = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * @return The bytes for nextPageToken. */ public com.google.protobuf.ByteString getNextPageTokenBytes() { java.lang.Object ref = nextPageToken_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); nextPageToken_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** * * *
     * Output only. Token to retrieve the next page of results, or empty if there
     * are no more results in the list.
     * 
* * string next_page_token = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * @param value The nextPageToken to set. * @return This builder for chaining. */ public Builder setNextPageToken(java.lang.String value) { if (value == null) { throw new NullPointerException(); } nextPageToken_ = value; bitField0_ |= 0x00000004; onChanged(); return this; } /** * * *
     * Output only. Token to retrieve the next page of results, or empty if there
     * are no more results in the list.
     * 
* * string next_page_token = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * @return This builder for chaining. */ public Builder clearNextPageToken() { nextPageToken_ = getDefaultInstance().getNextPageToken(); bitField0_ = (bitField0_ & ~0x00000004); onChanged(); return this; } /** * * *
     * Output only. Token to retrieve the next page of results, or empty if there
     * are no more results in the list.
     * 
* * string next_page_token = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * @param value The bytes for nextPageToken to set. * @return This builder for chaining. */ public Builder setNextPageTokenBytes(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); nextPageToken_ = value; bitField0_ |= 0x00000004; onChanged(); return this; } @java.lang.Override public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @java.lang.Override public final Builder mergeUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.mergeUnknownFields(unknownFields); } // @@protoc_insertion_point(builder_scope:google.cloud.dialogflow.v2.EnvironmentHistory) } // @@protoc_insertion_point(class_scope:google.cloud.dialogflow.v2.EnvironmentHistory) private static final com.google.cloud.dialogflow.v2.EnvironmentHistory DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.google.cloud.dialogflow.v2.EnvironmentHistory(); } public static com.google.cloud.dialogflow.v2.EnvironmentHistory getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public EnvironmentHistory 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.v2.EnvironmentHistory getDefaultInstanceForType() { return DEFAULT_INSTANCE; } }




© 2015 - 2024 Weber Informatics LLC | Privacy Policy