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.66.0
Show newest version
/*
 * Copyright 2020 Google LLC
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *     https://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */
// Generated by the protocol buffer compiler.  DO NOT EDIT!
// source: google/cloud/dialogflow/v2/environment.proto

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(); } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private EnvironmentHistory( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { this(); if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } int mutable_bitField0_ = 0; com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet.newBuilder(); try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; case 10: { java.lang.String s = input.readStringRequireUtf8(); parent_ = s; break; } case 18: { if (!((mutable_bitField0_ & 0x00000001) != 0)) { entries_ = new java.util.ArrayList< com.google.cloud.dialogflow.v2.EnvironmentHistory.Entry>(); mutable_bitField0_ |= 0x00000001; } entries_.add( input.readMessage( com.google.cloud.dialogflow.v2.EnvironmentHistory.Entry.parser(), extensionRegistry)); break; } case 26: { java.lang.String s = input.readStringRequireUtf8(); nextPageToken_ = s; break; } default: { if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { done = true; } break; } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { if (((mutable_bitField0_ & 0x00000001) != 0)) { entries_ = java.util.Collections.unmodifiableList(entries_); } this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } 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(); } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private Entry( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { this(); if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet.newBuilder(); try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; case 10: { java.lang.String s = input.readStringRequireUtf8(); agentVersion_ = s; break; } case 18: { java.lang.String s = input.readStringRequireUtf8(); description_ = s; break; } case 26: { com.google.protobuf.Timestamp.Builder subBuilder = null; if (createTime_ != null) { subBuilder = createTime_.toBuilder(); } createTime_ = input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(createTime_); createTime_ = subBuilder.buildPartial(); } break; } default: { if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { done = true; } break; } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } 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); } public static final int AGENT_VERSION_FIELD_NUMBER = 1; 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; 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 createTime_ != null; } /** * * *
     * 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 getCreateTime(); } 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 (!getAgentVersionBytes().isEmpty()) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, agentVersion_); } if (!getDescriptionBytes().isEmpty()) { com.google.protobuf.GeneratedMessageV3.writeString(output, 2, description_); } if (createTime_ != null) { output.writeMessage(3, getCreateTime()); } unknownFields.writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (!getAgentVersionBytes().isEmpty()) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, agentVersion_); } if (!getDescriptionBytes().isEmpty()) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, description_); } if (createTime_ != null) { size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, getCreateTime()); } size += unknownFields.getSerializedSize(); memoizedSize = size; return size; } @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } if (!(obj instanceof com.google.cloud.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 (!unknownFields.equals(other.unknownFields)) return false; return true; } @java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); hash = (37 * hash) + 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) + unknownFields.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) {} } @java.lang.Override public Builder clear() { super.clear(); agentVersion_ = ""; description_ = ""; if (createTimeBuilder_ == null) { createTime_ = null; } else { createTime_ = null; 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); result.agentVersion_ = agentVersion_; result.description_ = description_; if (createTimeBuilder_ == null) { result.createTime_ = createTime_; } else { result.createTime_ = createTimeBuilder_.build(); } onBuilt(); return result; } @java.lang.Override public Builder clone() { return super.clone(); } @java.lang.Override public Builder setField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } @java.lang.Override public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } @java.lang.Override public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } @java.lang.Override public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } @java.lang.Override public Builder addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.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_; onChanged(); } if (!other.getDescription().isEmpty()) { description_ = other.description_; onChanged(); } if (other.hasCreateTime()) { mergeCreateTime(other.getCreateTime()); } this.mergeUnknownFields(other.unknownFields); onChanged(); return this; } @java.lang.Override public final boolean isInitialized() { return true; } @java.lang.Override public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { com.google.cloud.dialogflow.v2.EnvironmentHistory.Entry parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (com.google.cloud.dialogflow.v2.EnvironmentHistory.Entry) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } 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; 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(); 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; 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; 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(); 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; 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 createTimeBuilder_ != null || createTime_ != null; } /** * * *
       * 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; onChanged(); } else { createTimeBuilder_.setMessage(value); } 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(); onChanged(); } else { createTimeBuilder_.setMessage(builderForValue.build()); } 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 (createTime_ != null) { createTime_ = com.google.protobuf.Timestamp.newBuilder(createTime_) .mergeFrom(value) .buildPartial(); } else { createTime_ = value; } onChanged(); } else { createTimeBuilder_.mergeFrom(value); } return this; } /** * * *
       * The creation time of this environment history entry.
       * 
* * .google.protobuf.Timestamp create_time = 3; */ public Builder clearCreateTime() { if (createTimeBuilder_ == null) { createTime_ = null; onChanged(); } else { createTime_ = null; createTimeBuilder_ = null; } return this; } /** * * *
       * The creation time of this environment history entry.
       * 
* * .google.protobuf.Timestamp create_time = 3; */ public com.google.protobuf.Timestamp.Builder getCreateTimeBuilder() { 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 { return new Entry(input, extensionRegistry); } }; public static com.google.protobuf.Parser parser() { return PARSER; } @java.lang.Override public com.google.protobuf.Parser getParserForType() { return PARSER; } @java.lang.Override public com.google.cloud.dialogflow.v2.EnvironmentHistory.Entry getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public static final int PARENT_FIELD_NUMBER = 1; 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; 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; 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 (!getParentBytes().isEmpty()) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, parent_); } for (int i = 0; i < entries_.size(); i++) { output.writeMessage(2, entries_.get(i)); } if (!getNextPageTokenBytes().isEmpty()) { com.google.protobuf.GeneratedMessageV3.writeString(output, 3, nextPageToken_); } unknownFields.writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (!getParentBytes().isEmpty()) { 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 (!getNextPageTokenBytes().isEmpty()) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, nextPageToken_); } size += unknownFields.getSerializedSize(); memoizedSize = size; return size; } @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } if (!(obj instanceof com.google.cloud.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 (!unknownFields.equals(other.unknownFields)) return false; return true; } @java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); hash = (37 * hash) + 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) + unknownFields.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() { maybeForceBuilderInitialization(); } private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { getEntriesFieldBuilder(); } } @java.lang.Override public Builder clear() { super.clear(); parent_ = ""; if (entriesBuilder_ == null) { entries_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000001); } else { entriesBuilder_.clear(); } 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); int from_bitField0_ = bitField0_; result.parent_ = parent_; if (entriesBuilder_ == null) { if (((bitField0_ & 0x00000001) != 0)) { entries_ = java.util.Collections.unmodifiableList(entries_); bitField0_ = (bitField0_ & ~0x00000001); } result.entries_ = entries_; } else { result.entries_ = entriesBuilder_.build(); } result.nextPageToken_ = nextPageToken_; onBuilt(); return result; } @java.lang.Override public Builder clone() { return super.clone(); } @java.lang.Override public Builder setField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } @java.lang.Override public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } @java.lang.Override public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } @java.lang.Override public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } @java.lang.Override public Builder addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.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_; onChanged(); } if (entriesBuilder_ == null) { if (!other.entries_.isEmpty()) { if (entries_.isEmpty()) { entries_ = other.entries_; bitField0_ = (bitField0_ & ~0x00000001); } else { ensureEntriesIsMutable(); entries_.addAll(other.entries_); } onChanged(); } } else { if (!other.entries_.isEmpty()) { if (entriesBuilder_.isEmpty()) { entriesBuilder_.dispose(); entriesBuilder_ = null; entries_ = other.entries_; bitField0_ = (bitField0_ & ~0x00000001); entriesBuilder_ = com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? getEntriesFieldBuilder() : null; } else { entriesBuilder_.addAllMessages(other.entries_); } } } if (!other.getNextPageToken().isEmpty()) { nextPageToken_ = other.nextPageToken_; onChanged(); } this.mergeUnknownFields(other.unknownFields); onChanged(); return this; } @java.lang.Override public final boolean isInitialized() { return true; } @java.lang.Override public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { com.google.cloud.dialogflow.v2.EnvironmentHistory parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (com.google.cloud.dialogflow.v2.EnvironmentHistory) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } 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; 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(); 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; onChanged(); return this; } private java.util.List entries_ = java.util.Collections.emptyList(); private void ensureEntriesIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { entries_ = new java.util.ArrayList( entries_); bitField0_ |= 0x00000001; } } 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_ & ~0x00000001); 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_ & 0x00000001) != 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; 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(); 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; 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 { return new EnvironmentHistory(input, extensionRegistry); } }; public static com.google.protobuf.Parser parser() { return PARSER; } @java.lang.Override public com.google.protobuf.Parser getParserForType() { return PARSER; } @java.lang.Override public com.google.cloud.dialogflow.v2.EnvironmentHistory getDefaultInstanceForType() { return DEFAULT_INSTANCE; } }




© 2015 - 2025 Weber Informatics LLC | Privacy Policy