public final class Intent extends GeneratedMessageV3 implements IntentOrBuilder
Represents an intent. Intents convert a number of user expressions or patterns into an action. An action is an extraction of a user command or sentence semantics.Protobuf type
google.cloud.dialogflow.v2beta1.Intent| Modifier and Type | Class and Description |
|---|---|
static class |
Intent.Builder
Represents an intent.
|
static class |
Intent.FollowupIntentInfo
Represents a single followup intent in the chain.
|
static interface |
Intent.FollowupIntentInfoOrBuilder |
static class |
Intent.Message
Corresponds to the `Response` field in the Dialogflow console.
|
static interface |
Intent.MessageOrBuilder |
static class |
Intent.Parameter
Represents intent parameters.
|
static interface |
Intent.ParameterOrBuilder |
static class |
Intent.TrainingPhrase
Represents an example or template that the agent is trained on.
|
static interface |
Intent.TrainingPhraseOrBuilder |
static class |
Intent.WebhookState
Represents the different states that webhooks can be in.
|
GeneratedMessageV3.BuilderParent, GeneratedMessageV3.ExtendableBuilder<MessageType extends GeneratedMessageV3.ExtendableMessage,BuilderType extends GeneratedMessageV3.ExtendableBuilder<MessageType,BuilderType>>, GeneratedMessageV3.ExtendableMessage<MessageType extends GeneratedMessageV3.ExtendableMessage>, GeneratedMessageV3.ExtendableMessageOrBuilder<MessageType extends GeneratedMessageV3.ExtendableMessage>, GeneratedMessageV3.FieldAccessorTable| Modifier and Type | Field and Description |
|---|---|
static int |
ACTION_FIELD_NUMBER |
static int |
DEFAULT_RESPONSE_PLATFORMS_FIELD_NUMBER |
static int |
DISPLAY_NAME_FIELD_NUMBER |
static int |
EVENTS_FIELD_NUMBER |
static int |
FOLLOWUP_INTENT_INFO_FIELD_NUMBER |
static int |
INPUT_CONTEXT_NAMES_FIELD_NUMBER |
static int |
IS_FALLBACK_FIELD_NUMBER |
static int |
MESSAGES_FIELD_NUMBER |
static int |
ML_DISABLED_FIELD_NUMBER |
static int |
ML_ENABLED_FIELD_NUMBER |
static int |
NAME_FIELD_NUMBER |
static int |
OUTPUT_CONTEXTS_FIELD_NUMBER |
static int |
PARAMETERS_FIELD_NUMBER |
static int |
PARENT_FOLLOWUP_INTENT_NAME_FIELD_NUMBER |
static int |
PRIORITY_FIELD_NUMBER |
static int |
RESET_CONTEXTS_FIELD_NUMBER |
static int |
ROOT_FOLLOWUP_INTENT_NAME_FIELD_NUMBER |
static int |
TRAINING_PHRASES_FIELD_NUMBER |
static int |
WEBHOOK_STATE_FIELD_NUMBER |
alwaysUseFieldBuilders, unknownFieldsmemoizedSizememoizedHashCodecanUseUnsafe, computeStringSize, computeStringSizeNoTag, getAllFields, getDescriptorForType, getField, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, hasField, hasOneof, internalGetMapField, makeExtensionsImmutable, newBuilderForType, parseDelimitedWithIOException, parseDelimitedWithIOException, parseUnknownField, parseUnknownFieldProto3, parseWithIOException, parseWithIOException, parseWithIOException, parseWithIOException, serializeBooleanMapTo, serializeIntegerMapTo, serializeLongMapTo, serializeStringMapTo, writeReplace, writeString, writeStringNoTagfindInitializationErrors, getInitializationErrorString, hashBoolean, hashEnum, hashEnumList, hashFields, hashLong, toStringaddAll, addAll, checkByteStringIsUtf8, toByteArray, toByteString, writeDelimitedTo, writeToclone, finalize, getClass, notify, notifyAll, wait, wait, waitfindInitializationErrors, getAllFields, getDescriptorForType, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, hasField, hasOneoftoByteArray, toByteString, writeDelimitedTo, writeTopublic static final int NAME_FIELD_NUMBER
public static final int DISPLAY_NAME_FIELD_NUMBER
public static final int WEBHOOK_STATE_FIELD_NUMBER
public static final int PRIORITY_FIELD_NUMBER
public static final int IS_FALLBACK_FIELD_NUMBER
public static final int ML_ENABLED_FIELD_NUMBER
public static final int ML_DISABLED_FIELD_NUMBER
public static final int INPUT_CONTEXT_NAMES_FIELD_NUMBER
public static final int EVENTS_FIELD_NUMBER
public static final int TRAINING_PHRASES_FIELD_NUMBER
public static final int ACTION_FIELD_NUMBER
public static final int OUTPUT_CONTEXTS_FIELD_NUMBER
public static final int RESET_CONTEXTS_FIELD_NUMBER
public static final int PARAMETERS_FIELD_NUMBER
public static final int MESSAGES_FIELD_NUMBER
public static final int DEFAULT_RESPONSE_PLATFORMS_FIELD_NUMBER
public static final int ROOT_FOLLOWUP_INTENT_NAME_FIELD_NUMBER
public static final int PARENT_FOLLOWUP_INTENT_NAME_FIELD_NUMBER
public static final int FOLLOWUP_INTENT_INFO_FIELD_NUMBER
public final UnknownFieldSet getUnknownFields()
getUnknownFields in interface MessageOrBuildergetUnknownFields in class GeneratedMessageV3public static final Descriptors.Descriptor getDescriptor()
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
internalGetFieldAccessorTable in class GeneratedMessageV3public java.lang.String getName()
Required for all methods except `create` (`create` populates the name automatically. The unique identifier of this intent. Format: `projects/<Project ID>/agent/intents/<Intent ID>`.
string name = 1;getName in interface IntentOrBuilderpublic ByteString getNameBytes()
Required for all methods except `create` (`create` populates the name automatically. The unique identifier of this intent. Format: `projects/<Project ID>/agent/intents/<Intent ID>`.
string name = 1;getNameBytes in interface IntentOrBuilderpublic java.lang.String getDisplayName()
Required. The name of this intent.
string display_name = 2;getDisplayName in interface IntentOrBuilderpublic ByteString getDisplayNameBytes()
Required. The name of this intent.
string display_name = 2;getDisplayNameBytes in interface IntentOrBuilderpublic int getWebhookStateValue()
Required. Indicates whether webhooks are enabled for the intent.
.google.cloud.dialogflow.v2beta1.Intent.WebhookState webhook_state = 6;getWebhookStateValue in interface IntentOrBuilderpublic Intent.WebhookState getWebhookState()
Required. Indicates whether webhooks are enabled for the intent.
.google.cloud.dialogflow.v2beta1.Intent.WebhookState webhook_state = 6;getWebhookState in interface IntentOrBuilderpublic int getPriority()
Optional. The priority of this intent. Higher numbers represent higher priorities. Zero or negative numbers mean that the intent is disabled.
int32 priority = 3;getPriority in interface IntentOrBuilderpublic boolean getIsFallback()
Optional. Indicates whether this is a fallback intent.
bool is_fallback = 4;getIsFallback in interface IntentOrBuilderpublic boolean getMlEnabled()
Optional. Indicates whether Machine Learning is enabled for the intent. Note: If `ml_enabled` setting is set to false, then this intent is not taken into account during inference in `ML ONLY` match mode. Also, auto-markup in the UI is turned off. DEPRECATED! Please use `ml_disabled` field instead. NOTE: If neither `ml_enabled` nor `ml_disabled` field is set, then the default value is determined as follows: - Before April 15th, 2018 the default is: ml_enabled = false / ml_disabled = true. - After April 15th, 2018 the default is: ml_enabled = true / ml_disabled = false.
bool ml_enabled = 5;getMlEnabled in interface IntentOrBuilderpublic boolean getMlDisabled()
Optional. Indicates whether Machine Learning is disabled for the intent. Note: If `ml_disabled` setting is set to true, then this intent is not taken into account during inference in `ML ONLY` match mode. Also, auto-markup in the UI is turned off.
bool ml_disabled = 19;getMlDisabled in interface IntentOrBuilderpublic ProtocolStringList getInputContextNamesList()
Optional. The list of context names required for this intent to be triggered. Format: `projects/<Project ID>/agent/sessions/-/contexts/<Context ID>`.
repeated string input_context_names = 7;getInputContextNamesList in interface IntentOrBuilderpublic int getInputContextNamesCount()
Optional. The list of context names required for this intent to be triggered. Format: `projects/<Project ID>/agent/sessions/-/contexts/<Context ID>`.
repeated string input_context_names = 7;getInputContextNamesCount in interface IntentOrBuilderpublic java.lang.String getInputContextNames(int index)
Optional. The list of context names required for this intent to be triggered. Format: `projects/<Project ID>/agent/sessions/-/contexts/<Context ID>`.
repeated string input_context_names = 7;getInputContextNames in interface IntentOrBuilderpublic ByteString getInputContextNamesBytes(int index)
Optional. The list of context names required for this intent to be triggered. Format: `projects/<Project ID>/agent/sessions/-/contexts/<Context ID>`.
repeated string input_context_names = 7;getInputContextNamesBytes in interface IntentOrBuilderpublic ProtocolStringList getEventsList()
Optional. The collection of event names that trigger the intent. If the collection of input contexts is not empty, all of the contexts must be present in the active user session for an event to trigger this intent.
repeated string events = 8;getEventsList in interface IntentOrBuilderpublic int getEventsCount()
Optional. The collection of event names that trigger the intent. If the collection of input contexts is not empty, all of the contexts must be present in the active user session for an event to trigger this intent.
repeated string events = 8;getEventsCount in interface IntentOrBuilderpublic java.lang.String getEvents(int index)
Optional. The collection of event names that trigger the intent. If the collection of input contexts is not empty, all of the contexts must be present in the active user session for an event to trigger this intent.
repeated string events = 8;getEvents in interface IntentOrBuilderpublic ByteString getEventsBytes(int index)
Optional. The collection of event names that trigger the intent. If the collection of input contexts is not empty, all of the contexts must be present in the active user session for an event to trigger this intent.
repeated string events = 8;getEventsBytes in interface IntentOrBuilderpublic java.util.List<Intent.TrainingPhrase> getTrainingPhrasesList()
Optional. The collection of examples/templates that the agent is trained on.
repeated .google.cloud.dialogflow.v2beta1.Intent.TrainingPhrase training_phrases = 9;getTrainingPhrasesList in interface IntentOrBuilderpublic java.util.List<? extends Intent.TrainingPhraseOrBuilder> getTrainingPhrasesOrBuilderList()
Optional. The collection of examples/templates that the agent is trained on.
repeated .google.cloud.dialogflow.v2beta1.Intent.TrainingPhrase training_phrases = 9;getTrainingPhrasesOrBuilderList in interface IntentOrBuilderpublic int getTrainingPhrasesCount()
Optional. The collection of examples/templates that the agent is trained on.
repeated .google.cloud.dialogflow.v2beta1.Intent.TrainingPhrase training_phrases = 9;getTrainingPhrasesCount in interface IntentOrBuilderpublic Intent.TrainingPhrase getTrainingPhrases(int index)
Optional. The collection of examples/templates that the agent is trained on.
repeated .google.cloud.dialogflow.v2beta1.Intent.TrainingPhrase training_phrases = 9;getTrainingPhrases in interface IntentOrBuilderpublic Intent.TrainingPhraseOrBuilder getTrainingPhrasesOrBuilder(int index)
Optional. The collection of examples/templates that the agent is trained on.
repeated .google.cloud.dialogflow.v2beta1.Intent.TrainingPhrase training_phrases = 9;getTrainingPhrasesOrBuilder in interface IntentOrBuilderpublic java.lang.String getAction()
Optional. The name of the action associated with the intent.
string action = 10;getAction in interface IntentOrBuilderpublic ByteString getActionBytes()
Optional. The name of the action associated with the intent.
string action = 10;getActionBytes in interface IntentOrBuilderpublic java.util.List<Context> getOutputContextsList()
Optional. The collection of contexts that are activated when the intent is matched. Context messages in this collection should not set the parameters field. Setting the `lifespan_count` to 0 will reset the context when the intent is matched. Format: `projects/<Project ID>/agent/sessions/-/contexts/<Context ID>`.
repeated .google.cloud.dialogflow.v2beta1.Context output_contexts = 11;getOutputContextsList in interface IntentOrBuilderpublic java.util.List<? extends ContextOrBuilder> getOutputContextsOrBuilderList()
Optional. The collection of contexts that are activated when the intent is matched. Context messages in this collection should not set the parameters field. Setting the `lifespan_count` to 0 will reset the context when the intent is matched. Format: `projects/<Project ID>/agent/sessions/-/contexts/<Context ID>`.
repeated .google.cloud.dialogflow.v2beta1.Context output_contexts = 11;getOutputContextsOrBuilderList in interface IntentOrBuilderpublic int getOutputContextsCount()
Optional. The collection of contexts that are activated when the intent is matched. Context messages in this collection should not set the parameters field. Setting the `lifespan_count` to 0 will reset the context when the intent is matched. Format: `projects/<Project ID>/agent/sessions/-/contexts/<Context ID>`.
repeated .google.cloud.dialogflow.v2beta1.Context output_contexts = 11;getOutputContextsCount in interface IntentOrBuilderpublic Context getOutputContexts(int index)
Optional. The collection of contexts that are activated when the intent is matched. Context messages in this collection should not set the parameters field. Setting the `lifespan_count` to 0 will reset the context when the intent is matched. Format: `projects/<Project ID>/agent/sessions/-/contexts/<Context ID>`.
repeated .google.cloud.dialogflow.v2beta1.Context output_contexts = 11;getOutputContexts in interface IntentOrBuilderpublic ContextOrBuilder getOutputContextsOrBuilder(int index)
Optional. The collection of contexts that are activated when the intent is matched. Context messages in this collection should not set the parameters field. Setting the `lifespan_count` to 0 will reset the context when the intent is matched. Format: `projects/<Project ID>/agent/sessions/-/contexts/<Context ID>`.
repeated .google.cloud.dialogflow.v2beta1.Context output_contexts = 11;getOutputContextsOrBuilder in interface IntentOrBuilderpublic boolean getResetContexts()
Optional. Indicates whether to delete all contexts in the current session when this intent is matched.
bool reset_contexts = 12;getResetContexts in interface IntentOrBuilderpublic java.util.List<Intent.Parameter> getParametersList()
Optional. The collection of parameters associated with the intent.
repeated .google.cloud.dialogflow.v2beta1.Intent.Parameter parameters = 13;getParametersList in interface IntentOrBuilderpublic java.util.List<? extends Intent.ParameterOrBuilder> getParametersOrBuilderList()
Optional. The collection of parameters associated with the intent.
repeated .google.cloud.dialogflow.v2beta1.Intent.Parameter parameters = 13;getParametersOrBuilderList in interface IntentOrBuilderpublic int getParametersCount()
Optional. The collection of parameters associated with the intent.
repeated .google.cloud.dialogflow.v2beta1.Intent.Parameter parameters = 13;getParametersCount in interface IntentOrBuilderpublic Intent.Parameter getParameters(int index)
Optional. The collection of parameters associated with the intent.
repeated .google.cloud.dialogflow.v2beta1.Intent.Parameter parameters = 13;getParameters in interface IntentOrBuilderpublic Intent.ParameterOrBuilder getParametersOrBuilder(int index)
Optional. The collection of parameters associated with the intent.
repeated .google.cloud.dialogflow.v2beta1.Intent.Parameter parameters = 13;getParametersOrBuilder in interface IntentOrBuilderpublic java.util.List<Intent.Message> getMessagesList()
Optional. The collection of rich messages corresponding to the `Response` field in the Dialogflow console.
repeated .google.cloud.dialogflow.v2beta1.Intent.Message messages = 14;getMessagesList in interface IntentOrBuilderpublic java.util.List<? extends Intent.MessageOrBuilder> getMessagesOrBuilderList()
Optional. The collection of rich messages corresponding to the `Response` field in the Dialogflow console.
repeated .google.cloud.dialogflow.v2beta1.Intent.Message messages = 14;getMessagesOrBuilderList in interface IntentOrBuilderpublic int getMessagesCount()
Optional. The collection of rich messages corresponding to the `Response` field in the Dialogflow console.
repeated .google.cloud.dialogflow.v2beta1.Intent.Message messages = 14;getMessagesCount in interface IntentOrBuilderpublic Intent.Message getMessages(int index)
Optional. The collection of rich messages corresponding to the `Response` field in the Dialogflow console.
repeated .google.cloud.dialogflow.v2beta1.Intent.Message messages = 14;getMessages in interface IntentOrBuilderpublic Intent.MessageOrBuilder getMessagesOrBuilder(int index)
Optional. The collection of rich messages corresponding to the `Response` field in the Dialogflow console.
repeated .google.cloud.dialogflow.v2beta1.Intent.Message messages = 14;getMessagesOrBuilder in interface IntentOrBuilderpublic java.util.List<Intent.Message.Platform> getDefaultResponsePlatformsList()
Optional. The list of platforms for which the first response will be taken from among the messages assigned to the DEFAULT_PLATFORM.
repeated .google.cloud.dialogflow.v2beta1.Intent.Message.Platform default_response_platforms = 15;getDefaultResponsePlatformsList in interface IntentOrBuilderpublic int getDefaultResponsePlatformsCount()
Optional. The list of platforms for which the first response will be taken from among the messages assigned to the DEFAULT_PLATFORM.
repeated .google.cloud.dialogflow.v2beta1.Intent.Message.Platform default_response_platforms = 15;getDefaultResponsePlatformsCount in interface IntentOrBuilderpublic Intent.Message.Platform getDefaultResponsePlatforms(int index)
Optional. The list of platforms for which the first response will be taken from among the messages assigned to the DEFAULT_PLATFORM.
repeated .google.cloud.dialogflow.v2beta1.Intent.Message.Platform default_response_platforms = 15;getDefaultResponsePlatforms in interface IntentOrBuilderpublic java.util.List<java.lang.Integer> getDefaultResponsePlatformsValueList()
Optional. The list of platforms for which the first response will be taken from among the messages assigned to the DEFAULT_PLATFORM.
repeated .google.cloud.dialogflow.v2beta1.Intent.Message.Platform default_response_platforms = 15;getDefaultResponsePlatformsValueList in interface IntentOrBuilderpublic int getDefaultResponsePlatformsValue(int index)
Optional. The list of platforms for which the first response will be taken from among the messages assigned to the DEFAULT_PLATFORM.
repeated .google.cloud.dialogflow.v2beta1.Intent.Message.Platform default_response_platforms = 15;getDefaultResponsePlatformsValue in interface IntentOrBuilderpublic java.lang.String getRootFollowupIntentName()
The unique identifier of the root intent in the chain of followup intents. It identifies the correct followup intents chain for this intent. Format: `projects/<Project ID>/agent/intents/<Intent ID>`.
string root_followup_intent_name = 16;getRootFollowupIntentName in interface IntentOrBuilderpublic ByteString getRootFollowupIntentNameBytes()
The unique identifier of the root intent in the chain of followup intents. It identifies the correct followup intents chain for this intent. Format: `projects/<Project ID>/agent/intents/<Intent ID>`.
string root_followup_intent_name = 16;getRootFollowupIntentNameBytes in interface IntentOrBuilderpublic java.lang.String getParentFollowupIntentName()
The unique identifier of the parent intent in the chain of followup intents. It identifies the parent followup intent. Format: `projects/<Project ID>/agent/intents/<Intent ID>`.
string parent_followup_intent_name = 17;getParentFollowupIntentName in interface IntentOrBuilderpublic ByteString getParentFollowupIntentNameBytes()
The unique identifier of the parent intent in the chain of followup intents. It identifies the parent followup intent. Format: `projects/<Project ID>/agent/intents/<Intent ID>`.
string parent_followup_intent_name = 17;getParentFollowupIntentNameBytes in interface IntentOrBuilderpublic java.util.List<Intent.FollowupIntentInfo> getFollowupIntentInfoList()
Optional. Collection of information about all followup intents that have name of this intent as a root_name.
repeated .google.cloud.dialogflow.v2beta1.Intent.FollowupIntentInfo followup_intent_info = 18;getFollowupIntentInfoList in interface IntentOrBuilderpublic java.util.List<? extends Intent.FollowupIntentInfoOrBuilder> getFollowupIntentInfoOrBuilderList()
Optional. Collection of information about all followup intents that have name of this intent as a root_name.
repeated .google.cloud.dialogflow.v2beta1.Intent.FollowupIntentInfo followup_intent_info = 18;getFollowupIntentInfoOrBuilderList in interface IntentOrBuilderpublic int getFollowupIntentInfoCount()
Optional. Collection of information about all followup intents that have name of this intent as a root_name.
repeated .google.cloud.dialogflow.v2beta1.Intent.FollowupIntentInfo followup_intent_info = 18;getFollowupIntentInfoCount in interface IntentOrBuilderpublic Intent.FollowupIntentInfo getFollowupIntentInfo(int index)
Optional. Collection of information about all followup intents that have name of this intent as a root_name.
repeated .google.cloud.dialogflow.v2beta1.Intent.FollowupIntentInfo followup_intent_info = 18;getFollowupIntentInfo in interface IntentOrBuilderpublic Intent.FollowupIntentInfoOrBuilder getFollowupIntentInfoOrBuilder(int index)
Optional. Collection of information about all followup intents that have name of this intent as a root_name.
repeated .google.cloud.dialogflow.v2beta1.Intent.FollowupIntentInfo followup_intent_info = 18;getFollowupIntentInfoOrBuilder in interface IntentOrBuilderpublic final boolean isInitialized()
isInitialized in interface MessageLiteOrBuilderisInitialized in class GeneratedMessageV3public void writeTo(CodedOutputStream output) throws java.io.IOException
writeTo in interface MessageLitewriteTo in class GeneratedMessageV3java.io.IOExceptionpublic int getSerializedSize()
getSerializedSize in interface MessageLitegetSerializedSize in class GeneratedMessageV3public boolean equals(java.lang.Object obj)
equals in interface Messageequals in class AbstractMessagepublic int hashCode()
hashCode in interface MessagehashCode in class AbstractMessagepublic static Intent parseFrom(java.nio.ByteBuffer data) throws InvalidProtocolBufferException
InvalidProtocolBufferExceptionpublic static Intent parseFrom(java.nio.ByteBuffer data, ExtensionRegistryLite extensionRegistry) throws InvalidProtocolBufferException
InvalidProtocolBufferExceptionpublic static Intent parseFrom(ByteString data) throws InvalidProtocolBufferException
InvalidProtocolBufferExceptionpublic static Intent parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry) throws InvalidProtocolBufferException
InvalidProtocolBufferExceptionpublic static Intent parseFrom(byte[] data) throws InvalidProtocolBufferException
InvalidProtocolBufferExceptionpublic static Intent parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry) throws InvalidProtocolBufferException
InvalidProtocolBufferExceptionpublic static Intent parseFrom(java.io.InputStream input) throws java.io.IOException
java.io.IOExceptionpublic static Intent parseFrom(java.io.InputStream input, ExtensionRegistryLite extensionRegistry) throws java.io.IOException
java.io.IOExceptionpublic static Intent parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException
java.io.IOExceptionpublic static Intent parseDelimitedFrom(java.io.InputStream input, ExtensionRegistryLite extensionRegistry) throws java.io.IOException
java.io.IOExceptionpublic static Intent parseFrom(CodedInputStream input) throws java.io.IOException
java.io.IOExceptionpublic static Intent parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry) throws java.io.IOException
java.io.IOExceptionpublic Intent.Builder newBuilderForType()
newBuilderForType in interface MessagenewBuilderForType in interface MessageLitepublic static Intent.Builder newBuilder()
public static Intent.Builder newBuilder(Intent prototype)
public Intent.Builder toBuilder()
toBuilder in interface MessagetoBuilder in interface MessageLiteprotected Intent.Builder newBuilderForType(GeneratedMessageV3.BuilderParent parent)
newBuilderForType in class GeneratedMessageV3public static Intent getDefaultInstance()
public Parser<Intent> getParserForType()
getParserForType in interface MessagegetParserForType in interface MessageLitegetParserForType in class GeneratedMessageV3public Intent getDefaultInstanceForType()
getDefaultInstanceForType in interface MessageLiteOrBuildergetDefaultInstanceForType in interface MessageOrBuilder