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

com.google.assistant.embedded.v1alpha2.AssistConfig Maven / Gradle / Ivy

// Generated by the protocol buffer compiler.  DO NOT EDIT!
// source: embedded_assistant.proto

package com.google.assistant.embedded.v1alpha2;

/**
 * 
 * Specifies how to process the `AssistRequest` messages.
 * 
* * Protobuf type {@code google.assistant.embedded.v1alpha2.AssistConfig} */ public final class AssistConfig extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.assistant.embedded.v1alpha2.AssistConfig) AssistConfigOrBuilder { private static final long serialVersionUID = 0L; // Use AssistConfig.newBuilder() to construct. private AssistConfig(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private AssistConfig() { } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new AssistConfig(); } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private AssistConfig( 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: { com.google.assistant.embedded.v1alpha2.AudioInConfig.Builder subBuilder = null; if (typeCase_ == 1) { subBuilder = ((com.google.assistant.embedded.v1alpha2.AudioInConfig) type_).toBuilder(); } type_ = input.readMessage(com.google.assistant.embedded.v1alpha2.AudioInConfig.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom((com.google.assistant.embedded.v1alpha2.AudioInConfig) type_); type_ = subBuilder.buildPartial(); } typeCase_ = 1; break; } case 18: { com.google.assistant.embedded.v1alpha2.AudioOutConfig.Builder subBuilder = null; if (audioOutConfig_ != null) { subBuilder = audioOutConfig_.toBuilder(); } audioOutConfig_ = input.readMessage(com.google.assistant.embedded.v1alpha2.AudioOutConfig.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(audioOutConfig_); audioOutConfig_ = subBuilder.buildPartial(); } break; } case 26: { com.google.assistant.embedded.v1alpha2.DialogStateIn.Builder subBuilder = null; if (dialogStateIn_ != null) { subBuilder = dialogStateIn_.toBuilder(); } dialogStateIn_ = input.readMessage(com.google.assistant.embedded.v1alpha2.DialogStateIn.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(dialogStateIn_); dialogStateIn_ = subBuilder.buildPartial(); } break; } case 34: { com.google.assistant.embedded.v1alpha2.DeviceConfig.Builder subBuilder = null; if (deviceConfig_ != null) { subBuilder = deviceConfig_.toBuilder(); } deviceConfig_ = input.readMessage(com.google.assistant.embedded.v1alpha2.DeviceConfig.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(deviceConfig_); deviceConfig_ = subBuilder.buildPartial(); } break; } case 42: { com.google.assistant.embedded.v1alpha2.DebugConfig.Builder subBuilder = null; if (debugConfig_ != null) { subBuilder = debugConfig_.toBuilder(); } debugConfig_ = input.readMessage(com.google.assistant.embedded.v1alpha2.DebugConfig.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(debugConfig_); debugConfig_ = subBuilder.buildPartial(); } break; } case 50: { java.lang.String s = input.readStringRequireUtf8(); typeCase_ = 6; type_ = s; break; } case 66: { com.google.assistant.embedded.v1alpha2.ScreenOutConfig.Builder subBuilder = null; if (screenOutConfig_ != null) { subBuilder = screenOutConfig_.toBuilder(); } screenOutConfig_ = input.readMessage(com.google.assistant.embedded.v1alpha2.ScreenOutConfig.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(screenOutConfig_); screenOutConfig_ = 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.assistant.embedded.v1alpha2.AssistantProto.internal_static_google_assistant_embedded_v1alpha2_AssistConfig_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.google.assistant.embedded.v1alpha2.AssistantProto.internal_static_google_assistant_embedded_v1alpha2_AssistConfig_fieldAccessorTable .ensureFieldAccessorsInitialized( com.google.assistant.embedded.v1alpha2.AssistConfig.class, com.google.assistant.embedded.v1alpha2.AssistConfig.Builder.class); } private int typeCase_ = 0; private java.lang.Object type_; public enum TypeCase implements com.google.protobuf.Internal.EnumLite, com.google.protobuf.AbstractMessage.InternalOneOfEnum { AUDIO_IN_CONFIG(1), TEXT_QUERY(6), TYPE_NOT_SET(0); private final int value; private TypeCase(int value) { this.value = value; } /** * @param value The number of the enum to look for. * @return The enum associated with the given number. * @deprecated Use {@link #forNumber(int)} instead. */ @java.lang.Deprecated public static TypeCase valueOf(int value) { return forNumber(value); } public static TypeCase forNumber(int value) { switch (value) { case 1: return AUDIO_IN_CONFIG; case 6: return TEXT_QUERY; case 0: return TYPE_NOT_SET; default: return null; } } public int getNumber() { return this.value; } }; public TypeCase getTypeCase() { return TypeCase.forNumber( typeCase_); } public static final int AUDIO_IN_CONFIG_FIELD_NUMBER = 1; /** *
   * Specifies how to process the subsequent incoming audio. Required if
   * [AssistRequest.audio_in][google.assistant.embedded.v1alpha2.AssistRequest.audio_in]
   * bytes will be provided in subsequent requests.
   * 
* * .google.assistant.embedded.v1alpha2.AudioInConfig audio_in_config = 1; * @return Whether the audioInConfig field is set. */ public boolean hasAudioInConfig() { return typeCase_ == 1; } /** *
   * Specifies how to process the subsequent incoming audio. Required if
   * [AssistRequest.audio_in][google.assistant.embedded.v1alpha2.AssistRequest.audio_in]
   * bytes will be provided in subsequent requests.
   * 
* * .google.assistant.embedded.v1alpha2.AudioInConfig audio_in_config = 1; * @return The audioInConfig. */ public com.google.assistant.embedded.v1alpha2.AudioInConfig getAudioInConfig() { if (typeCase_ == 1) { return (com.google.assistant.embedded.v1alpha2.AudioInConfig) type_; } return com.google.assistant.embedded.v1alpha2.AudioInConfig.getDefaultInstance(); } /** *
   * Specifies how to process the subsequent incoming audio. Required if
   * [AssistRequest.audio_in][google.assistant.embedded.v1alpha2.AssistRequest.audio_in]
   * bytes will be provided in subsequent requests.
   * 
* * .google.assistant.embedded.v1alpha2.AudioInConfig audio_in_config = 1; */ public com.google.assistant.embedded.v1alpha2.AudioInConfigOrBuilder getAudioInConfigOrBuilder() { if (typeCase_ == 1) { return (com.google.assistant.embedded.v1alpha2.AudioInConfig) type_; } return com.google.assistant.embedded.v1alpha2.AudioInConfig.getDefaultInstance(); } public static final int TEXT_QUERY_FIELD_NUMBER = 6; /** *
   * The text input to be sent to the Assistant. This can be populated from a
   * text interface if audio input is not available.
   * 
* * string text_query = 6; * @return The textQuery. */ public java.lang.String getTextQuery() { java.lang.Object ref = ""; if (typeCase_ == 6) { ref = type_; } 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(); if (typeCase_ == 6) { type_ = s; } return s; } } /** *
   * The text input to be sent to the Assistant. This can be populated from a
   * text interface if audio input is not available.
   * 
* * string text_query = 6; * @return The bytes for textQuery. */ public com.google.protobuf.ByteString getTextQueryBytes() { java.lang.Object ref = ""; if (typeCase_ == 6) { ref = type_; } if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); if (typeCase_ == 6) { type_ = b; } return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int AUDIO_OUT_CONFIG_FIELD_NUMBER = 2; private com.google.assistant.embedded.v1alpha2.AudioOutConfig audioOutConfig_; /** *
   * *Required* Specifies how to format the audio that will be returned.
   * 
* * .google.assistant.embedded.v1alpha2.AudioOutConfig audio_out_config = 2; * @return Whether the audioOutConfig field is set. */ public boolean hasAudioOutConfig() { return audioOutConfig_ != null; } /** *
   * *Required* Specifies how to format the audio that will be returned.
   * 
* * .google.assistant.embedded.v1alpha2.AudioOutConfig audio_out_config = 2; * @return The audioOutConfig. */ public com.google.assistant.embedded.v1alpha2.AudioOutConfig getAudioOutConfig() { return audioOutConfig_ == null ? com.google.assistant.embedded.v1alpha2.AudioOutConfig.getDefaultInstance() : audioOutConfig_; } /** *
   * *Required* Specifies how to format the audio that will be returned.
   * 
* * .google.assistant.embedded.v1alpha2.AudioOutConfig audio_out_config = 2; */ public com.google.assistant.embedded.v1alpha2.AudioOutConfigOrBuilder getAudioOutConfigOrBuilder() { return getAudioOutConfig(); } public static final int SCREEN_OUT_CONFIG_FIELD_NUMBER = 8; private com.google.assistant.embedded.v1alpha2.ScreenOutConfig screenOutConfig_; /** *
   * *Optional* Specifies the desired format to use when server returns a
   * visual screen response.
   * 
* * .google.assistant.embedded.v1alpha2.ScreenOutConfig screen_out_config = 8; * @return Whether the screenOutConfig field is set. */ public boolean hasScreenOutConfig() { return screenOutConfig_ != null; } /** *
   * *Optional* Specifies the desired format to use when server returns a
   * visual screen response.
   * 
* * .google.assistant.embedded.v1alpha2.ScreenOutConfig screen_out_config = 8; * @return The screenOutConfig. */ public com.google.assistant.embedded.v1alpha2.ScreenOutConfig getScreenOutConfig() { return screenOutConfig_ == null ? com.google.assistant.embedded.v1alpha2.ScreenOutConfig.getDefaultInstance() : screenOutConfig_; } /** *
   * *Optional* Specifies the desired format to use when server returns a
   * visual screen response.
   * 
* * .google.assistant.embedded.v1alpha2.ScreenOutConfig screen_out_config = 8; */ public com.google.assistant.embedded.v1alpha2.ScreenOutConfigOrBuilder getScreenOutConfigOrBuilder() { return getScreenOutConfig(); } public static final int DIALOG_STATE_IN_FIELD_NUMBER = 3; private com.google.assistant.embedded.v1alpha2.DialogStateIn dialogStateIn_; /** *
   * *Required* Represents the current dialog state.
   * 
* * .google.assistant.embedded.v1alpha2.DialogStateIn dialog_state_in = 3; * @return Whether the dialogStateIn field is set. */ public boolean hasDialogStateIn() { return dialogStateIn_ != null; } /** *
   * *Required* Represents the current dialog state.
   * 
* * .google.assistant.embedded.v1alpha2.DialogStateIn dialog_state_in = 3; * @return The dialogStateIn. */ public com.google.assistant.embedded.v1alpha2.DialogStateIn getDialogStateIn() { return dialogStateIn_ == null ? com.google.assistant.embedded.v1alpha2.DialogStateIn.getDefaultInstance() : dialogStateIn_; } /** *
   * *Required* Represents the current dialog state.
   * 
* * .google.assistant.embedded.v1alpha2.DialogStateIn dialog_state_in = 3; */ public com.google.assistant.embedded.v1alpha2.DialogStateInOrBuilder getDialogStateInOrBuilder() { return getDialogStateIn(); } public static final int DEVICE_CONFIG_FIELD_NUMBER = 4; private com.google.assistant.embedded.v1alpha2.DeviceConfig deviceConfig_; /** *
   * Device configuration that uniquely identifies a specific device.
   * 
* * .google.assistant.embedded.v1alpha2.DeviceConfig device_config = 4; * @return Whether the deviceConfig field is set. */ public boolean hasDeviceConfig() { return deviceConfig_ != null; } /** *
   * Device configuration that uniquely identifies a specific device.
   * 
* * .google.assistant.embedded.v1alpha2.DeviceConfig device_config = 4; * @return The deviceConfig. */ public com.google.assistant.embedded.v1alpha2.DeviceConfig getDeviceConfig() { return deviceConfig_ == null ? com.google.assistant.embedded.v1alpha2.DeviceConfig.getDefaultInstance() : deviceConfig_; } /** *
   * Device configuration that uniquely identifies a specific device.
   * 
* * .google.assistant.embedded.v1alpha2.DeviceConfig device_config = 4; */ public com.google.assistant.embedded.v1alpha2.DeviceConfigOrBuilder getDeviceConfigOrBuilder() { return getDeviceConfig(); } public static final int DEBUG_CONFIG_FIELD_NUMBER = 5; private com.google.assistant.embedded.v1alpha2.DebugConfig debugConfig_; /** *
   * *Optional* Debugging parameters for the whole `Assist` RPC.
   * 
* * .google.assistant.embedded.v1alpha2.DebugConfig debug_config = 5; * @return Whether the debugConfig field is set. */ public boolean hasDebugConfig() { return debugConfig_ != null; } /** *
   * *Optional* Debugging parameters for the whole `Assist` RPC.
   * 
* * .google.assistant.embedded.v1alpha2.DebugConfig debug_config = 5; * @return The debugConfig. */ public com.google.assistant.embedded.v1alpha2.DebugConfig getDebugConfig() { return debugConfig_ == null ? com.google.assistant.embedded.v1alpha2.DebugConfig.getDefaultInstance() : debugConfig_; } /** *
   * *Optional* Debugging parameters for the whole `Assist` RPC.
   * 
* * .google.assistant.embedded.v1alpha2.DebugConfig debug_config = 5; */ public com.google.assistant.embedded.v1alpha2.DebugConfigOrBuilder getDebugConfigOrBuilder() { return getDebugConfig(); } 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 (typeCase_ == 1) { output.writeMessage(1, (com.google.assistant.embedded.v1alpha2.AudioInConfig) type_); } if (audioOutConfig_ != null) { output.writeMessage(2, getAudioOutConfig()); } if (dialogStateIn_ != null) { output.writeMessage(3, getDialogStateIn()); } if (deviceConfig_ != null) { output.writeMessage(4, getDeviceConfig()); } if (debugConfig_ != null) { output.writeMessage(5, getDebugConfig()); } if (typeCase_ == 6) { com.google.protobuf.GeneratedMessageV3.writeString(output, 6, type_); } if (screenOutConfig_ != null) { output.writeMessage(8, getScreenOutConfig()); } unknownFields.writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (typeCase_ == 1) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(1, (com.google.assistant.embedded.v1alpha2.AudioInConfig) type_); } if (audioOutConfig_ != null) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(2, getAudioOutConfig()); } if (dialogStateIn_ != null) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(3, getDialogStateIn()); } if (deviceConfig_ != null) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(4, getDeviceConfig()); } if (debugConfig_ != null) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(5, getDebugConfig()); } if (typeCase_ == 6) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(6, type_); } if (screenOutConfig_ != null) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(8, getScreenOutConfig()); } 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.assistant.embedded.v1alpha2.AssistConfig)) { return super.equals(obj); } com.google.assistant.embedded.v1alpha2.AssistConfig other = (com.google.assistant.embedded.v1alpha2.AssistConfig) obj; if (hasAudioOutConfig() != other.hasAudioOutConfig()) return false; if (hasAudioOutConfig()) { if (!getAudioOutConfig() .equals(other.getAudioOutConfig())) return false; } if (hasScreenOutConfig() != other.hasScreenOutConfig()) return false; if (hasScreenOutConfig()) { if (!getScreenOutConfig() .equals(other.getScreenOutConfig())) return false; } if (hasDialogStateIn() != other.hasDialogStateIn()) return false; if (hasDialogStateIn()) { if (!getDialogStateIn() .equals(other.getDialogStateIn())) return false; } if (hasDeviceConfig() != other.hasDeviceConfig()) return false; if (hasDeviceConfig()) { if (!getDeviceConfig() .equals(other.getDeviceConfig())) return false; } if (hasDebugConfig() != other.hasDebugConfig()) return false; if (hasDebugConfig()) { if (!getDebugConfig() .equals(other.getDebugConfig())) return false; } if (!getTypeCase().equals(other.getTypeCase())) return false; switch (typeCase_) { case 1: if (!getAudioInConfig() .equals(other.getAudioInConfig())) return false; break; case 6: if (!getTextQuery() .equals(other.getTextQuery())) return false; break; case 0: default: } 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(); if (hasAudioOutConfig()) { hash = (37 * hash) + AUDIO_OUT_CONFIG_FIELD_NUMBER; hash = (53 * hash) + getAudioOutConfig().hashCode(); } if (hasScreenOutConfig()) { hash = (37 * hash) + SCREEN_OUT_CONFIG_FIELD_NUMBER; hash = (53 * hash) + getScreenOutConfig().hashCode(); } if (hasDialogStateIn()) { hash = (37 * hash) + DIALOG_STATE_IN_FIELD_NUMBER; hash = (53 * hash) + getDialogStateIn().hashCode(); } if (hasDeviceConfig()) { hash = (37 * hash) + DEVICE_CONFIG_FIELD_NUMBER; hash = (53 * hash) + getDeviceConfig().hashCode(); } if (hasDebugConfig()) { hash = (37 * hash) + DEBUG_CONFIG_FIELD_NUMBER; hash = (53 * hash) + getDebugConfig().hashCode(); } switch (typeCase_) { case 1: hash = (37 * hash) + AUDIO_IN_CONFIG_FIELD_NUMBER; hash = (53 * hash) + getAudioInConfig().hashCode(); break; case 6: hash = (37 * hash) + TEXT_QUERY_FIELD_NUMBER; hash = (53 * hash) + getTextQuery().hashCode(); break; case 0: default: } hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static com.google.assistant.embedded.v1alpha2.AssistConfig parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.google.assistant.embedded.v1alpha2.AssistConfig parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.google.assistant.embedded.v1alpha2.AssistConfig parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.google.assistant.embedded.v1alpha2.AssistConfig 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.assistant.embedded.v1alpha2.AssistConfig parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.google.assistant.embedded.v1alpha2.AssistConfig parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.google.assistant.embedded.v1alpha2.AssistConfig parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static com.google.assistant.embedded.v1alpha2.AssistConfig 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.assistant.embedded.v1alpha2.AssistConfig parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static com.google.assistant.embedded.v1alpha2.AssistConfig 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.assistant.embedded.v1alpha2.AssistConfig parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static com.google.assistant.embedded.v1alpha2.AssistConfig 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.assistant.embedded.v1alpha2.AssistConfig 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; } /** *
   * Specifies how to process the `AssistRequest` messages.
   * 
* * Protobuf type {@code google.assistant.embedded.v1alpha2.AssistConfig} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.assistant.embedded.v1alpha2.AssistConfig) com.google.assistant.embedded.v1alpha2.AssistConfigOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.assistant.embedded.v1alpha2.AssistantProto.internal_static_google_assistant_embedded_v1alpha2_AssistConfig_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.google.assistant.embedded.v1alpha2.AssistantProto.internal_static_google_assistant_embedded_v1alpha2_AssistConfig_fieldAccessorTable .ensureFieldAccessorsInitialized( com.google.assistant.embedded.v1alpha2.AssistConfig.class, com.google.assistant.embedded.v1alpha2.AssistConfig.Builder.class); } // Construct using com.google.assistant.embedded.v1alpha2.AssistConfig.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(); if (audioOutConfigBuilder_ == null) { audioOutConfig_ = null; } else { audioOutConfig_ = null; audioOutConfigBuilder_ = null; } if (screenOutConfigBuilder_ == null) { screenOutConfig_ = null; } else { screenOutConfig_ = null; screenOutConfigBuilder_ = null; } if (dialogStateInBuilder_ == null) { dialogStateIn_ = null; } else { dialogStateIn_ = null; dialogStateInBuilder_ = null; } if (deviceConfigBuilder_ == null) { deviceConfig_ = null; } else { deviceConfig_ = null; deviceConfigBuilder_ = null; } if (debugConfigBuilder_ == null) { debugConfig_ = null; } else { debugConfig_ = null; debugConfigBuilder_ = null; } typeCase_ = 0; type_ = null; return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return com.google.assistant.embedded.v1alpha2.AssistantProto.internal_static_google_assistant_embedded_v1alpha2_AssistConfig_descriptor; } @java.lang.Override public com.google.assistant.embedded.v1alpha2.AssistConfig getDefaultInstanceForType() { return com.google.assistant.embedded.v1alpha2.AssistConfig.getDefaultInstance(); } @java.lang.Override public com.google.assistant.embedded.v1alpha2.AssistConfig build() { com.google.assistant.embedded.v1alpha2.AssistConfig result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public com.google.assistant.embedded.v1alpha2.AssistConfig buildPartial() { com.google.assistant.embedded.v1alpha2.AssistConfig result = new com.google.assistant.embedded.v1alpha2.AssistConfig(this); if (typeCase_ == 1) { if (audioInConfigBuilder_ == null) { result.type_ = type_; } else { result.type_ = audioInConfigBuilder_.build(); } } if (typeCase_ == 6) { result.type_ = type_; } if (audioOutConfigBuilder_ == null) { result.audioOutConfig_ = audioOutConfig_; } else { result.audioOutConfig_ = audioOutConfigBuilder_.build(); } if (screenOutConfigBuilder_ == null) { result.screenOutConfig_ = screenOutConfig_; } else { result.screenOutConfig_ = screenOutConfigBuilder_.build(); } if (dialogStateInBuilder_ == null) { result.dialogStateIn_ = dialogStateIn_; } else { result.dialogStateIn_ = dialogStateInBuilder_.build(); } if (deviceConfigBuilder_ == null) { result.deviceConfig_ = deviceConfig_; } else { result.deviceConfig_ = deviceConfigBuilder_.build(); } if (debugConfigBuilder_ == null) { result.debugConfig_ = debugConfig_; } else { result.debugConfig_ = debugConfigBuilder_.build(); } result.typeCase_ = typeCase_; 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.assistant.embedded.v1alpha2.AssistConfig) { return mergeFrom((com.google.assistant.embedded.v1alpha2.AssistConfig)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(com.google.assistant.embedded.v1alpha2.AssistConfig other) { if (other == com.google.assistant.embedded.v1alpha2.AssistConfig.getDefaultInstance()) return this; if (other.hasAudioOutConfig()) { mergeAudioOutConfig(other.getAudioOutConfig()); } if (other.hasScreenOutConfig()) { mergeScreenOutConfig(other.getScreenOutConfig()); } if (other.hasDialogStateIn()) { mergeDialogStateIn(other.getDialogStateIn()); } if (other.hasDeviceConfig()) { mergeDeviceConfig(other.getDeviceConfig()); } if (other.hasDebugConfig()) { mergeDebugConfig(other.getDebugConfig()); } switch (other.getTypeCase()) { case AUDIO_IN_CONFIG: { mergeAudioInConfig(other.getAudioInConfig()); break; } case TEXT_QUERY: { typeCase_ = 6; type_ = other.type_; onChanged(); break; } case TYPE_NOT_SET: { break; } } 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.assistant.embedded.v1alpha2.AssistConfig parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (com.google.assistant.embedded.v1alpha2.AssistConfig) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private int typeCase_ = 0; private java.lang.Object type_; public TypeCase getTypeCase() { return TypeCase.forNumber( typeCase_); } public Builder clearType() { typeCase_ = 0; type_ = null; onChanged(); return this; } private com.google.protobuf.SingleFieldBuilderV3< com.google.assistant.embedded.v1alpha2.AudioInConfig, com.google.assistant.embedded.v1alpha2.AudioInConfig.Builder, com.google.assistant.embedded.v1alpha2.AudioInConfigOrBuilder> audioInConfigBuilder_; /** *
     * Specifies how to process the subsequent incoming audio. Required if
     * [AssistRequest.audio_in][google.assistant.embedded.v1alpha2.AssistRequest.audio_in]
     * bytes will be provided in subsequent requests.
     * 
* * .google.assistant.embedded.v1alpha2.AudioInConfig audio_in_config = 1; * @return Whether the audioInConfig field is set. */ public boolean hasAudioInConfig() { return typeCase_ == 1; } /** *
     * Specifies how to process the subsequent incoming audio. Required if
     * [AssistRequest.audio_in][google.assistant.embedded.v1alpha2.AssistRequest.audio_in]
     * bytes will be provided in subsequent requests.
     * 
* * .google.assistant.embedded.v1alpha2.AudioInConfig audio_in_config = 1; * @return The audioInConfig. */ public com.google.assistant.embedded.v1alpha2.AudioInConfig getAudioInConfig() { if (audioInConfigBuilder_ == null) { if (typeCase_ == 1) { return (com.google.assistant.embedded.v1alpha2.AudioInConfig) type_; } return com.google.assistant.embedded.v1alpha2.AudioInConfig.getDefaultInstance(); } else { if (typeCase_ == 1) { return audioInConfigBuilder_.getMessage(); } return com.google.assistant.embedded.v1alpha2.AudioInConfig.getDefaultInstance(); } } /** *
     * Specifies how to process the subsequent incoming audio. Required if
     * [AssistRequest.audio_in][google.assistant.embedded.v1alpha2.AssistRequest.audio_in]
     * bytes will be provided in subsequent requests.
     * 
* * .google.assistant.embedded.v1alpha2.AudioInConfig audio_in_config = 1; */ public Builder setAudioInConfig(com.google.assistant.embedded.v1alpha2.AudioInConfig value) { if (audioInConfigBuilder_ == null) { if (value == null) { throw new NullPointerException(); } type_ = value; onChanged(); } else { audioInConfigBuilder_.setMessage(value); } typeCase_ = 1; return this; } /** *
     * Specifies how to process the subsequent incoming audio. Required if
     * [AssistRequest.audio_in][google.assistant.embedded.v1alpha2.AssistRequest.audio_in]
     * bytes will be provided in subsequent requests.
     * 
* * .google.assistant.embedded.v1alpha2.AudioInConfig audio_in_config = 1; */ public Builder setAudioInConfig( com.google.assistant.embedded.v1alpha2.AudioInConfig.Builder builderForValue) { if (audioInConfigBuilder_ == null) { type_ = builderForValue.build(); onChanged(); } else { audioInConfigBuilder_.setMessage(builderForValue.build()); } typeCase_ = 1; return this; } /** *
     * Specifies how to process the subsequent incoming audio. Required if
     * [AssistRequest.audio_in][google.assistant.embedded.v1alpha2.AssistRequest.audio_in]
     * bytes will be provided in subsequent requests.
     * 
* * .google.assistant.embedded.v1alpha2.AudioInConfig audio_in_config = 1; */ public Builder mergeAudioInConfig(com.google.assistant.embedded.v1alpha2.AudioInConfig value) { if (audioInConfigBuilder_ == null) { if (typeCase_ == 1 && type_ != com.google.assistant.embedded.v1alpha2.AudioInConfig.getDefaultInstance()) { type_ = com.google.assistant.embedded.v1alpha2.AudioInConfig.newBuilder((com.google.assistant.embedded.v1alpha2.AudioInConfig) type_) .mergeFrom(value).buildPartial(); } else { type_ = value; } onChanged(); } else { if (typeCase_ == 1) { audioInConfigBuilder_.mergeFrom(value); } audioInConfigBuilder_.setMessage(value); } typeCase_ = 1; return this; } /** *
     * Specifies how to process the subsequent incoming audio. Required if
     * [AssistRequest.audio_in][google.assistant.embedded.v1alpha2.AssistRequest.audio_in]
     * bytes will be provided in subsequent requests.
     * 
* * .google.assistant.embedded.v1alpha2.AudioInConfig audio_in_config = 1; */ public Builder clearAudioInConfig() { if (audioInConfigBuilder_ == null) { if (typeCase_ == 1) { typeCase_ = 0; type_ = null; onChanged(); } } else { if (typeCase_ == 1) { typeCase_ = 0; type_ = null; } audioInConfigBuilder_.clear(); } return this; } /** *
     * Specifies how to process the subsequent incoming audio. Required if
     * [AssistRequest.audio_in][google.assistant.embedded.v1alpha2.AssistRequest.audio_in]
     * bytes will be provided in subsequent requests.
     * 
* * .google.assistant.embedded.v1alpha2.AudioInConfig audio_in_config = 1; */ public com.google.assistant.embedded.v1alpha2.AudioInConfig.Builder getAudioInConfigBuilder() { return getAudioInConfigFieldBuilder().getBuilder(); } /** *
     * Specifies how to process the subsequent incoming audio. Required if
     * [AssistRequest.audio_in][google.assistant.embedded.v1alpha2.AssistRequest.audio_in]
     * bytes will be provided in subsequent requests.
     * 
* * .google.assistant.embedded.v1alpha2.AudioInConfig audio_in_config = 1; */ public com.google.assistant.embedded.v1alpha2.AudioInConfigOrBuilder getAudioInConfigOrBuilder() { if ((typeCase_ == 1) && (audioInConfigBuilder_ != null)) { return audioInConfigBuilder_.getMessageOrBuilder(); } else { if (typeCase_ == 1) { return (com.google.assistant.embedded.v1alpha2.AudioInConfig) type_; } return com.google.assistant.embedded.v1alpha2.AudioInConfig.getDefaultInstance(); } } /** *
     * Specifies how to process the subsequent incoming audio. Required if
     * [AssistRequest.audio_in][google.assistant.embedded.v1alpha2.AssistRequest.audio_in]
     * bytes will be provided in subsequent requests.
     * 
* * .google.assistant.embedded.v1alpha2.AudioInConfig audio_in_config = 1; */ private com.google.protobuf.SingleFieldBuilderV3< com.google.assistant.embedded.v1alpha2.AudioInConfig, com.google.assistant.embedded.v1alpha2.AudioInConfig.Builder, com.google.assistant.embedded.v1alpha2.AudioInConfigOrBuilder> getAudioInConfigFieldBuilder() { if (audioInConfigBuilder_ == null) { if (!(typeCase_ == 1)) { type_ = com.google.assistant.embedded.v1alpha2.AudioInConfig.getDefaultInstance(); } audioInConfigBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.google.assistant.embedded.v1alpha2.AudioInConfig, com.google.assistant.embedded.v1alpha2.AudioInConfig.Builder, com.google.assistant.embedded.v1alpha2.AudioInConfigOrBuilder>( (com.google.assistant.embedded.v1alpha2.AudioInConfig) type_, getParentForChildren(), isClean()); type_ = null; } typeCase_ = 1; onChanged();; return audioInConfigBuilder_; } /** *
     * The text input to be sent to the Assistant. This can be populated from a
     * text interface if audio input is not available.
     * 
* * string text_query = 6; * @return The textQuery. */ public java.lang.String getTextQuery() { java.lang.Object ref = ""; if (typeCase_ == 6) { ref = type_; } if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); if (typeCase_ == 6) { type_ = s; } return s; } else { return (java.lang.String) ref; } } /** *
     * The text input to be sent to the Assistant. This can be populated from a
     * text interface if audio input is not available.
     * 
* * string text_query = 6; * @return The bytes for textQuery. */ public com.google.protobuf.ByteString getTextQueryBytes() { java.lang.Object ref = ""; if (typeCase_ == 6) { ref = type_; } if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); if (typeCase_ == 6) { type_ = b; } return b; } else { return (com.google.protobuf.ByteString) ref; } } /** *
     * The text input to be sent to the Assistant. This can be populated from a
     * text interface if audio input is not available.
     * 
* * string text_query = 6; * @param value The textQuery to set. * @return This builder for chaining. */ public Builder setTextQuery( java.lang.String value) { if (value == null) { throw new NullPointerException(); } typeCase_ = 6; type_ = value; onChanged(); return this; } /** *
     * The text input to be sent to the Assistant. This can be populated from a
     * text interface if audio input is not available.
     * 
* * string text_query = 6; * @return This builder for chaining. */ public Builder clearTextQuery() { if (typeCase_ == 6) { typeCase_ = 0; type_ = null; onChanged(); } return this; } /** *
     * The text input to be sent to the Assistant. This can be populated from a
     * text interface if audio input is not available.
     * 
* * string text_query = 6; * @param value The bytes for textQuery to set. * @return This builder for chaining. */ public Builder setTextQueryBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); typeCase_ = 6; type_ = value; onChanged(); return this; } private com.google.assistant.embedded.v1alpha2.AudioOutConfig audioOutConfig_; private com.google.protobuf.SingleFieldBuilderV3< com.google.assistant.embedded.v1alpha2.AudioOutConfig, com.google.assistant.embedded.v1alpha2.AudioOutConfig.Builder, com.google.assistant.embedded.v1alpha2.AudioOutConfigOrBuilder> audioOutConfigBuilder_; /** *
     * *Required* Specifies how to format the audio that will be returned.
     * 
* * .google.assistant.embedded.v1alpha2.AudioOutConfig audio_out_config = 2; * @return Whether the audioOutConfig field is set. */ public boolean hasAudioOutConfig() { return audioOutConfigBuilder_ != null || audioOutConfig_ != null; } /** *
     * *Required* Specifies how to format the audio that will be returned.
     * 
* * .google.assistant.embedded.v1alpha2.AudioOutConfig audio_out_config = 2; * @return The audioOutConfig. */ public com.google.assistant.embedded.v1alpha2.AudioOutConfig getAudioOutConfig() { if (audioOutConfigBuilder_ == null) { return audioOutConfig_ == null ? com.google.assistant.embedded.v1alpha2.AudioOutConfig.getDefaultInstance() : audioOutConfig_; } else { return audioOutConfigBuilder_.getMessage(); } } /** *
     * *Required* Specifies how to format the audio that will be returned.
     * 
* * .google.assistant.embedded.v1alpha2.AudioOutConfig audio_out_config = 2; */ public Builder setAudioOutConfig(com.google.assistant.embedded.v1alpha2.AudioOutConfig value) { if (audioOutConfigBuilder_ == null) { if (value == null) { throw new NullPointerException(); } audioOutConfig_ = value; onChanged(); } else { audioOutConfigBuilder_.setMessage(value); } return this; } /** *
     * *Required* Specifies how to format the audio that will be returned.
     * 
* * .google.assistant.embedded.v1alpha2.AudioOutConfig audio_out_config = 2; */ public Builder setAudioOutConfig( com.google.assistant.embedded.v1alpha2.AudioOutConfig.Builder builderForValue) { if (audioOutConfigBuilder_ == null) { audioOutConfig_ = builderForValue.build(); onChanged(); } else { audioOutConfigBuilder_.setMessage(builderForValue.build()); } return this; } /** *
     * *Required* Specifies how to format the audio that will be returned.
     * 
* * .google.assistant.embedded.v1alpha2.AudioOutConfig audio_out_config = 2; */ public Builder mergeAudioOutConfig(com.google.assistant.embedded.v1alpha2.AudioOutConfig value) { if (audioOutConfigBuilder_ == null) { if (audioOutConfig_ != null) { audioOutConfig_ = com.google.assistant.embedded.v1alpha2.AudioOutConfig.newBuilder(audioOutConfig_).mergeFrom(value).buildPartial(); } else { audioOutConfig_ = value; } onChanged(); } else { audioOutConfigBuilder_.mergeFrom(value); } return this; } /** *
     * *Required* Specifies how to format the audio that will be returned.
     * 
* * .google.assistant.embedded.v1alpha2.AudioOutConfig audio_out_config = 2; */ public Builder clearAudioOutConfig() { if (audioOutConfigBuilder_ == null) { audioOutConfig_ = null; onChanged(); } else { audioOutConfig_ = null; audioOutConfigBuilder_ = null; } return this; } /** *
     * *Required* Specifies how to format the audio that will be returned.
     * 
* * .google.assistant.embedded.v1alpha2.AudioOutConfig audio_out_config = 2; */ public com.google.assistant.embedded.v1alpha2.AudioOutConfig.Builder getAudioOutConfigBuilder() { onChanged(); return getAudioOutConfigFieldBuilder().getBuilder(); } /** *
     * *Required* Specifies how to format the audio that will be returned.
     * 
* * .google.assistant.embedded.v1alpha2.AudioOutConfig audio_out_config = 2; */ public com.google.assistant.embedded.v1alpha2.AudioOutConfigOrBuilder getAudioOutConfigOrBuilder() { if (audioOutConfigBuilder_ != null) { return audioOutConfigBuilder_.getMessageOrBuilder(); } else { return audioOutConfig_ == null ? com.google.assistant.embedded.v1alpha2.AudioOutConfig.getDefaultInstance() : audioOutConfig_; } } /** *
     * *Required* Specifies how to format the audio that will be returned.
     * 
* * .google.assistant.embedded.v1alpha2.AudioOutConfig audio_out_config = 2; */ private com.google.protobuf.SingleFieldBuilderV3< com.google.assistant.embedded.v1alpha2.AudioOutConfig, com.google.assistant.embedded.v1alpha2.AudioOutConfig.Builder, com.google.assistant.embedded.v1alpha2.AudioOutConfigOrBuilder> getAudioOutConfigFieldBuilder() { if (audioOutConfigBuilder_ == null) { audioOutConfigBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.google.assistant.embedded.v1alpha2.AudioOutConfig, com.google.assistant.embedded.v1alpha2.AudioOutConfig.Builder, com.google.assistant.embedded.v1alpha2.AudioOutConfigOrBuilder>( getAudioOutConfig(), getParentForChildren(), isClean()); audioOutConfig_ = null; } return audioOutConfigBuilder_; } private com.google.assistant.embedded.v1alpha2.ScreenOutConfig screenOutConfig_; private com.google.protobuf.SingleFieldBuilderV3< com.google.assistant.embedded.v1alpha2.ScreenOutConfig, com.google.assistant.embedded.v1alpha2.ScreenOutConfig.Builder, com.google.assistant.embedded.v1alpha2.ScreenOutConfigOrBuilder> screenOutConfigBuilder_; /** *
     * *Optional* Specifies the desired format to use when server returns a
     * visual screen response.
     * 
* * .google.assistant.embedded.v1alpha2.ScreenOutConfig screen_out_config = 8; * @return Whether the screenOutConfig field is set. */ public boolean hasScreenOutConfig() { return screenOutConfigBuilder_ != null || screenOutConfig_ != null; } /** *
     * *Optional* Specifies the desired format to use when server returns a
     * visual screen response.
     * 
* * .google.assistant.embedded.v1alpha2.ScreenOutConfig screen_out_config = 8; * @return The screenOutConfig. */ public com.google.assistant.embedded.v1alpha2.ScreenOutConfig getScreenOutConfig() { if (screenOutConfigBuilder_ == null) { return screenOutConfig_ == null ? com.google.assistant.embedded.v1alpha2.ScreenOutConfig.getDefaultInstance() : screenOutConfig_; } else { return screenOutConfigBuilder_.getMessage(); } } /** *
     * *Optional* Specifies the desired format to use when server returns a
     * visual screen response.
     * 
* * .google.assistant.embedded.v1alpha2.ScreenOutConfig screen_out_config = 8; */ public Builder setScreenOutConfig(com.google.assistant.embedded.v1alpha2.ScreenOutConfig value) { if (screenOutConfigBuilder_ == null) { if (value == null) { throw new NullPointerException(); } screenOutConfig_ = value; onChanged(); } else { screenOutConfigBuilder_.setMessage(value); } return this; } /** *
     * *Optional* Specifies the desired format to use when server returns a
     * visual screen response.
     * 
* * .google.assistant.embedded.v1alpha2.ScreenOutConfig screen_out_config = 8; */ public Builder setScreenOutConfig( com.google.assistant.embedded.v1alpha2.ScreenOutConfig.Builder builderForValue) { if (screenOutConfigBuilder_ == null) { screenOutConfig_ = builderForValue.build(); onChanged(); } else { screenOutConfigBuilder_.setMessage(builderForValue.build()); } return this; } /** *
     * *Optional* Specifies the desired format to use when server returns a
     * visual screen response.
     * 
* * .google.assistant.embedded.v1alpha2.ScreenOutConfig screen_out_config = 8; */ public Builder mergeScreenOutConfig(com.google.assistant.embedded.v1alpha2.ScreenOutConfig value) { if (screenOutConfigBuilder_ == null) { if (screenOutConfig_ != null) { screenOutConfig_ = com.google.assistant.embedded.v1alpha2.ScreenOutConfig.newBuilder(screenOutConfig_).mergeFrom(value).buildPartial(); } else { screenOutConfig_ = value; } onChanged(); } else { screenOutConfigBuilder_.mergeFrom(value); } return this; } /** *
     * *Optional* Specifies the desired format to use when server returns a
     * visual screen response.
     * 
* * .google.assistant.embedded.v1alpha2.ScreenOutConfig screen_out_config = 8; */ public Builder clearScreenOutConfig() { if (screenOutConfigBuilder_ == null) { screenOutConfig_ = null; onChanged(); } else { screenOutConfig_ = null; screenOutConfigBuilder_ = null; } return this; } /** *
     * *Optional* Specifies the desired format to use when server returns a
     * visual screen response.
     * 
* * .google.assistant.embedded.v1alpha2.ScreenOutConfig screen_out_config = 8; */ public com.google.assistant.embedded.v1alpha2.ScreenOutConfig.Builder getScreenOutConfigBuilder() { onChanged(); return getScreenOutConfigFieldBuilder().getBuilder(); } /** *
     * *Optional* Specifies the desired format to use when server returns a
     * visual screen response.
     * 
* * .google.assistant.embedded.v1alpha2.ScreenOutConfig screen_out_config = 8; */ public com.google.assistant.embedded.v1alpha2.ScreenOutConfigOrBuilder getScreenOutConfigOrBuilder() { if (screenOutConfigBuilder_ != null) { return screenOutConfigBuilder_.getMessageOrBuilder(); } else { return screenOutConfig_ == null ? com.google.assistant.embedded.v1alpha2.ScreenOutConfig.getDefaultInstance() : screenOutConfig_; } } /** *
     * *Optional* Specifies the desired format to use when server returns a
     * visual screen response.
     * 
* * .google.assistant.embedded.v1alpha2.ScreenOutConfig screen_out_config = 8; */ private com.google.protobuf.SingleFieldBuilderV3< com.google.assistant.embedded.v1alpha2.ScreenOutConfig, com.google.assistant.embedded.v1alpha2.ScreenOutConfig.Builder, com.google.assistant.embedded.v1alpha2.ScreenOutConfigOrBuilder> getScreenOutConfigFieldBuilder() { if (screenOutConfigBuilder_ == null) { screenOutConfigBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.google.assistant.embedded.v1alpha2.ScreenOutConfig, com.google.assistant.embedded.v1alpha2.ScreenOutConfig.Builder, com.google.assistant.embedded.v1alpha2.ScreenOutConfigOrBuilder>( getScreenOutConfig(), getParentForChildren(), isClean()); screenOutConfig_ = null; } return screenOutConfigBuilder_; } private com.google.assistant.embedded.v1alpha2.DialogStateIn dialogStateIn_; private com.google.protobuf.SingleFieldBuilderV3< com.google.assistant.embedded.v1alpha2.DialogStateIn, com.google.assistant.embedded.v1alpha2.DialogStateIn.Builder, com.google.assistant.embedded.v1alpha2.DialogStateInOrBuilder> dialogStateInBuilder_; /** *
     * *Required* Represents the current dialog state.
     * 
* * .google.assistant.embedded.v1alpha2.DialogStateIn dialog_state_in = 3; * @return Whether the dialogStateIn field is set. */ public boolean hasDialogStateIn() { return dialogStateInBuilder_ != null || dialogStateIn_ != null; } /** *
     * *Required* Represents the current dialog state.
     * 
* * .google.assistant.embedded.v1alpha2.DialogStateIn dialog_state_in = 3; * @return The dialogStateIn. */ public com.google.assistant.embedded.v1alpha2.DialogStateIn getDialogStateIn() { if (dialogStateInBuilder_ == null) { return dialogStateIn_ == null ? com.google.assistant.embedded.v1alpha2.DialogStateIn.getDefaultInstance() : dialogStateIn_; } else { return dialogStateInBuilder_.getMessage(); } } /** *
     * *Required* Represents the current dialog state.
     * 
* * .google.assistant.embedded.v1alpha2.DialogStateIn dialog_state_in = 3; */ public Builder setDialogStateIn(com.google.assistant.embedded.v1alpha2.DialogStateIn value) { if (dialogStateInBuilder_ == null) { if (value == null) { throw new NullPointerException(); } dialogStateIn_ = value; onChanged(); } else { dialogStateInBuilder_.setMessage(value); } return this; } /** *
     * *Required* Represents the current dialog state.
     * 
* * .google.assistant.embedded.v1alpha2.DialogStateIn dialog_state_in = 3; */ public Builder setDialogStateIn( com.google.assistant.embedded.v1alpha2.DialogStateIn.Builder builderForValue) { if (dialogStateInBuilder_ == null) { dialogStateIn_ = builderForValue.build(); onChanged(); } else { dialogStateInBuilder_.setMessage(builderForValue.build()); } return this; } /** *
     * *Required* Represents the current dialog state.
     * 
* * .google.assistant.embedded.v1alpha2.DialogStateIn dialog_state_in = 3; */ public Builder mergeDialogStateIn(com.google.assistant.embedded.v1alpha2.DialogStateIn value) { if (dialogStateInBuilder_ == null) { if (dialogStateIn_ != null) { dialogStateIn_ = com.google.assistant.embedded.v1alpha2.DialogStateIn.newBuilder(dialogStateIn_).mergeFrom(value).buildPartial(); } else { dialogStateIn_ = value; } onChanged(); } else { dialogStateInBuilder_.mergeFrom(value); } return this; } /** *
     * *Required* Represents the current dialog state.
     * 
* * .google.assistant.embedded.v1alpha2.DialogStateIn dialog_state_in = 3; */ public Builder clearDialogStateIn() { if (dialogStateInBuilder_ == null) { dialogStateIn_ = null; onChanged(); } else { dialogStateIn_ = null; dialogStateInBuilder_ = null; } return this; } /** *
     * *Required* Represents the current dialog state.
     * 
* * .google.assistant.embedded.v1alpha2.DialogStateIn dialog_state_in = 3; */ public com.google.assistant.embedded.v1alpha2.DialogStateIn.Builder getDialogStateInBuilder() { onChanged(); return getDialogStateInFieldBuilder().getBuilder(); } /** *
     * *Required* Represents the current dialog state.
     * 
* * .google.assistant.embedded.v1alpha2.DialogStateIn dialog_state_in = 3; */ public com.google.assistant.embedded.v1alpha2.DialogStateInOrBuilder getDialogStateInOrBuilder() { if (dialogStateInBuilder_ != null) { return dialogStateInBuilder_.getMessageOrBuilder(); } else { return dialogStateIn_ == null ? com.google.assistant.embedded.v1alpha2.DialogStateIn.getDefaultInstance() : dialogStateIn_; } } /** *
     * *Required* Represents the current dialog state.
     * 
* * .google.assistant.embedded.v1alpha2.DialogStateIn dialog_state_in = 3; */ private com.google.protobuf.SingleFieldBuilderV3< com.google.assistant.embedded.v1alpha2.DialogStateIn, com.google.assistant.embedded.v1alpha2.DialogStateIn.Builder, com.google.assistant.embedded.v1alpha2.DialogStateInOrBuilder> getDialogStateInFieldBuilder() { if (dialogStateInBuilder_ == null) { dialogStateInBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.google.assistant.embedded.v1alpha2.DialogStateIn, com.google.assistant.embedded.v1alpha2.DialogStateIn.Builder, com.google.assistant.embedded.v1alpha2.DialogStateInOrBuilder>( getDialogStateIn(), getParentForChildren(), isClean()); dialogStateIn_ = null; } return dialogStateInBuilder_; } private com.google.assistant.embedded.v1alpha2.DeviceConfig deviceConfig_; private com.google.protobuf.SingleFieldBuilderV3< com.google.assistant.embedded.v1alpha2.DeviceConfig, com.google.assistant.embedded.v1alpha2.DeviceConfig.Builder, com.google.assistant.embedded.v1alpha2.DeviceConfigOrBuilder> deviceConfigBuilder_; /** *
     * Device configuration that uniquely identifies a specific device.
     * 
* * .google.assistant.embedded.v1alpha2.DeviceConfig device_config = 4; * @return Whether the deviceConfig field is set. */ public boolean hasDeviceConfig() { return deviceConfigBuilder_ != null || deviceConfig_ != null; } /** *
     * Device configuration that uniquely identifies a specific device.
     * 
* * .google.assistant.embedded.v1alpha2.DeviceConfig device_config = 4; * @return The deviceConfig. */ public com.google.assistant.embedded.v1alpha2.DeviceConfig getDeviceConfig() { if (deviceConfigBuilder_ == null) { return deviceConfig_ == null ? com.google.assistant.embedded.v1alpha2.DeviceConfig.getDefaultInstance() : deviceConfig_; } else { return deviceConfigBuilder_.getMessage(); } } /** *
     * Device configuration that uniquely identifies a specific device.
     * 
* * .google.assistant.embedded.v1alpha2.DeviceConfig device_config = 4; */ public Builder setDeviceConfig(com.google.assistant.embedded.v1alpha2.DeviceConfig value) { if (deviceConfigBuilder_ == null) { if (value == null) { throw new NullPointerException(); } deviceConfig_ = value; onChanged(); } else { deviceConfigBuilder_.setMessage(value); } return this; } /** *
     * Device configuration that uniquely identifies a specific device.
     * 
* * .google.assistant.embedded.v1alpha2.DeviceConfig device_config = 4; */ public Builder setDeviceConfig( com.google.assistant.embedded.v1alpha2.DeviceConfig.Builder builderForValue) { if (deviceConfigBuilder_ == null) { deviceConfig_ = builderForValue.build(); onChanged(); } else { deviceConfigBuilder_.setMessage(builderForValue.build()); } return this; } /** *
     * Device configuration that uniquely identifies a specific device.
     * 
* * .google.assistant.embedded.v1alpha2.DeviceConfig device_config = 4; */ public Builder mergeDeviceConfig(com.google.assistant.embedded.v1alpha2.DeviceConfig value) { if (deviceConfigBuilder_ == null) { if (deviceConfig_ != null) { deviceConfig_ = com.google.assistant.embedded.v1alpha2.DeviceConfig.newBuilder(deviceConfig_).mergeFrom(value).buildPartial(); } else { deviceConfig_ = value; } onChanged(); } else { deviceConfigBuilder_.mergeFrom(value); } return this; } /** *
     * Device configuration that uniquely identifies a specific device.
     * 
* * .google.assistant.embedded.v1alpha2.DeviceConfig device_config = 4; */ public Builder clearDeviceConfig() { if (deviceConfigBuilder_ == null) { deviceConfig_ = null; onChanged(); } else { deviceConfig_ = null; deviceConfigBuilder_ = null; } return this; } /** *
     * Device configuration that uniquely identifies a specific device.
     * 
* * .google.assistant.embedded.v1alpha2.DeviceConfig device_config = 4; */ public com.google.assistant.embedded.v1alpha2.DeviceConfig.Builder getDeviceConfigBuilder() { onChanged(); return getDeviceConfigFieldBuilder().getBuilder(); } /** *
     * Device configuration that uniquely identifies a specific device.
     * 
* * .google.assistant.embedded.v1alpha2.DeviceConfig device_config = 4; */ public com.google.assistant.embedded.v1alpha2.DeviceConfigOrBuilder getDeviceConfigOrBuilder() { if (deviceConfigBuilder_ != null) { return deviceConfigBuilder_.getMessageOrBuilder(); } else { return deviceConfig_ == null ? com.google.assistant.embedded.v1alpha2.DeviceConfig.getDefaultInstance() : deviceConfig_; } } /** *
     * Device configuration that uniquely identifies a specific device.
     * 
* * .google.assistant.embedded.v1alpha2.DeviceConfig device_config = 4; */ private com.google.protobuf.SingleFieldBuilderV3< com.google.assistant.embedded.v1alpha2.DeviceConfig, com.google.assistant.embedded.v1alpha2.DeviceConfig.Builder, com.google.assistant.embedded.v1alpha2.DeviceConfigOrBuilder> getDeviceConfigFieldBuilder() { if (deviceConfigBuilder_ == null) { deviceConfigBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.google.assistant.embedded.v1alpha2.DeviceConfig, com.google.assistant.embedded.v1alpha2.DeviceConfig.Builder, com.google.assistant.embedded.v1alpha2.DeviceConfigOrBuilder>( getDeviceConfig(), getParentForChildren(), isClean()); deviceConfig_ = null; } return deviceConfigBuilder_; } private com.google.assistant.embedded.v1alpha2.DebugConfig debugConfig_; private com.google.protobuf.SingleFieldBuilderV3< com.google.assistant.embedded.v1alpha2.DebugConfig, com.google.assistant.embedded.v1alpha2.DebugConfig.Builder, com.google.assistant.embedded.v1alpha2.DebugConfigOrBuilder> debugConfigBuilder_; /** *
     * *Optional* Debugging parameters for the whole `Assist` RPC.
     * 
* * .google.assistant.embedded.v1alpha2.DebugConfig debug_config = 5; * @return Whether the debugConfig field is set. */ public boolean hasDebugConfig() { return debugConfigBuilder_ != null || debugConfig_ != null; } /** *
     * *Optional* Debugging parameters for the whole `Assist` RPC.
     * 
* * .google.assistant.embedded.v1alpha2.DebugConfig debug_config = 5; * @return The debugConfig. */ public com.google.assistant.embedded.v1alpha2.DebugConfig getDebugConfig() { if (debugConfigBuilder_ == null) { return debugConfig_ == null ? com.google.assistant.embedded.v1alpha2.DebugConfig.getDefaultInstance() : debugConfig_; } else { return debugConfigBuilder_.getMessage(); } } /** *
     * *Optional* Debugging parameters for the whole `Assist` RPC.
     * 
* * .google.assistant.embedded.v1alpha2.DebugConfig debug_config = 5; */ public Builder setDebugConfig(com.google.assistant.embedded.v1alpha2.DebugConfig value) { if (debugConfigBuilder_ == null) { if (value == null) { throw new NullPointerException(); } debugConfig_ = value; onChanged(); } else { debugConfigBuilder_.setMessage(value); } return this; } /** *
     * *Optional* Debugging parameters for the whole `Assist` RPC.
     * 
* * .google.assistant.embedded.v1alpha2.DebugConfig debug_config = 5; */ public Builder setDebugConfig( com.google.assistant.embedded.v1alpha2.DebugConfig.Builder builderForValue) { if (debugConfigBuilder_ == null) { debugConfig_ = builderForValue.build(); onChanged(); } else { debugConfigBuilder_.setMessage(builderForValue.build()); } return this; } /** *
     * *Optional* Debugging parameters for the whole `Assist` RPC.
     * 
* * .google.assistant.embedded.v1alpha2.DebugConfig debug_config = 5; */ public Builder mergeDebugConfig(com.google.assistant.embedded.v1alpha2.DebugConfig value) { if (debugConfigBuilder_ == null) { if (debugConfig_ != null) { debugConfig_ = com.google.assistant.embedded.v1alpha2.DebugConfig.newBuilder(debugConfig_).mergeFrom(value).buildPartial(); } else { debugConfig_ = value; } onChanged(); } else { debugConfigBuilder_.mergeFrom(value); } return this; } /** *
     * *Optional* Debugging parameters for the whole `Assist` RPC.
     * 
* * .google.assistant.embedded.v1alpha2.DebugConfig debug_config = 5; */ public Builder clearDebugConfig() { if (debugConfigBuilder_ == null) { debugConfig_ = null; onChanged(); } else { debugConfig_ = null; debugConfigBuilder_ = null; } return this; } /** *
     * *Optional* Debugging parameters for the whole `Assist` RPC.
     * 
* * .google.assistant.embedded.v1alpha2.DebugConfig debug_config = 5; */ public com.google.assistant.embedded.v1alpha2.DebugConfig.Builder getDebugConfigBuilder() { onChanged(); return getDebugConfigFieldBuilder().getBuilder(); } /** *
     * *Optional* Debugging parameters for the whole `Assist` RPC.
     * 
* * .google.assistant.embedded.v1alpha2.DebugConfig debug_config = 5; */ public com.google.assistant.embedded.v1alpha2.DebugConfigOrBuilder getDebugConfigOrBuilder() { if (debugConfigBuilder_ != null) { return debugConfigBuilder_.getMessageOrBuilder(); } else { return debugConfig_ == null ? com.google.assistant.embedded.v1alpha2.DebugConfig.getDefaultInstance() : debugConfig_; } } /** *
     * *Optional* Debugging parameters for the whole `Assist` RPC.
     * 
* * .google.assistant.embedded.v1alpha2.DebugConfig debug_config = 5; */ private com.google.protobuf.SingleFieldBuilderV3< com.google.assistant.embedded.v1alpha2.DebugConfig, com.google.assistant.embedded.v1alpha2.DebugConfig.Builder, com.google.assistant.embedded.v1alpha2.DebugConfigOrBuilder> getDebugConfigFieldBuilder() { if (debugConfigBuilder_ == null) { debugConfigBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.google.assistant.embedded.v1alpha2.DebugConfig, com.google.assistant.embedded.v1alpha2.DebugConfig.Builder, com.google.assistant.embedded.v1alpha2.DebugConfigOrBuilder>( getDebugConfig(), getParentForChildren(), isClean()); debugConfig_ = null; } return debugConfigBuilder_; } @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.assistant.embedded.v1alpha2.AssistConfig) } // @@protoc_insertion_point(class_scope:google.assistant.embedded.v1alpha2.AssistConfig) private static final com.google.assistant.embedded.v1alpha2.AssistConfig DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.google.assistant.embedded.v1alpha2.AssistConfig(); } public static com.google.assistant.embedded.v1alpha2.AssistConfig getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public AssistConfig parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new AssistConfig(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.assistant.embedded.v1alpha2.AssistConfig getDefaultInstanceForType() { return DEFAULT_INSTANCE; } }




© 2015 - 2025 Weber Informatics LLC | Privacy Policy