Class GenericInsight.Builder
java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessage.Builder<GenericInsight.Builder>
com.google.cloud.migrationcenter.v1.GenericInsight.Builder
- All Implemented Interfaces:
GenericInsightOrBuilder,com.google.protobuf.Message.Builder,com.google.protobuf.MessageLite.Builder,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,Cloneable
- Enclosing class:
- GenericInsight
public static final class GenericInsight.Builder
extends com.google.protobuf.GeneratedMessage.Builder<GenericInsight.Builder>
implements GenericInsightOrBuilder
A generic insight about an asset.Protobuf type
google.cloud.migrationcenter.v1.GenericInsight-
Method Summary
Modifier and TypeMethodDescriptionaddAdditionalInformation(String value) Output only.addAdditionalInformationBytes(com.google.protobuf.ByteString value) Output only.addAllAdditionalInformation(Iterable<String> values) Output only.build()clear()Output only.Output only.Output only.getAdditionalInformation(int index) Output only.com.google.protobuf.ByteStringgetAdditionalInformationBytes(int index) Output only.intOutput only.com.google.protobuf.ProtocolStringListOutput only.Output only.com.google.protobuf.ByteStringOutput only.static final com.google.protobuf.Descriptors.Descriptorcom.google.protobuf.Descriptors.DescriptorlongOutput only.protected com.google.protobuf.GeneratedMessage.FieldAccessorTablefinal booleanmergeFrom(GenericInsight other) mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) mergeFrom(com.google.protobuf.Message other) setAdditionalInformation(int index, String value) Output only.setDefaultMessage(String value) Output only.setDefaultMessageBytes(com.google.protobuf.ByteString value) Output only.setMessageId(long value) Output only.Methods inherited from class com.google.protobuf.GeneratedMessage.Builder
addRepeatedField, clearField, clearOneof, clone, getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, internalGetMapField, internalGetMapFieldReflection, internalGetMutableMapField, internalGetMutableMapFieldReflection, isClean, markClean, mergeUnknownFields, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, setField, setRepeatedField, setUnknownFields, setUnknownFieldSetBuilder, setUnknownFieldsProto3Methods inherited from class com.google.protobuf.AbstractMessage.Builder
findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toStringMethods inherited from class com.google.protobuf.AbstractMessageLite.Builder
addAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, newUninitializedMessageExceptionMethods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface com.google.protobuf.Message.Builder
mergeDelimitedFrom, mergeDelimitedFromMethods inherited from interface com.google.protobuf.MessageLite.Builder
mergeFromMethods inherited from interface com.google.protobuf.MessageOrBuilder
findInitializationErrors, getAllFields, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
-
Method Details
-
getDescriptor
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() -
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()- Specified by:
internalGetFieldAccessorTablein classcom.google.protobuf.GeneratedMessage.Builder<GenericInsight.Builder>
-
clear
- Specified by:
clearin interfacecom.google.protobuf.Message.Builder- Specified by:
clearin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
clearin classcom.google.protobuf.GeneratedMessage.Builder<GenericInsight.Builder>
-
getDescriptorForType
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.Message.Builder- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.MessageOrBuilder- Overrides:
getDescriptorForTypein classcom.google.protobuf.GeneratedMessage.Builder<GenericInsight.Builder>
-
getDefaultInstanceForType
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-
build
- Specified by:
buildin interfacecom.google.protobuf.Message.Builder- Specified by:
buildin interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
- Specified by:
buildPartialin interfacecom.google.protobuf.Message.Builder- Specified by:
buildPartialin interfacecom.google.protobuf.MessageLite.Builder
-
mergeFrom
- Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<GenericInsight.Builder>
-
mergeFrom
-
isInitialized
public final boolean isInitialized()- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessage.Builder<GenericInsight.Builder>
-
mergeFrom
public GenericInsight.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException - Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Specified by:
mergeFromin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<GenericInsight.Builder>- Throws:
IOException
-
getMessageId
public long getMessageId()Output only. Represents a globally unique message id for this insight, can be used for localization purposes, in case message_code is not yet known by the client use default_message instead.
int64 message_id = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];- Specified by:
getMessageIdin interfaceGenericInsightOrBuilder- Returns:
- The messageId.
-
setMessageId
Output only. Represents a globally unique message id for this insight, can be used for localization purposes, in case message_code is not yet known by the client use default_message instead.
int64 message_id = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];- Parameters:
value- The messageId to set.- Returns:
- This builder for chaining.
-
clearMessageId
Output only. Represents a globally unique message id for this insight, can be used for localization purposes, in case message_code is not yet known by the client use default_message instead.
int64 message_id = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];- Returns:
- This builder for chaining.
-
getDefaultMessage
Output only. In case message_code is not yet known by the client default_message will be the message to be used instead.
string default_message = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];- Specified by:
getDefaultMessagein interfaceGenericInsightOrBuilder- Returns:
- The defaultMessage.
-
getDefaultMessageBytes
public com.google.protobuf.ByteString getDefaultMessageBytes()Output only. In case message_code is not yet known by the client default_message will be the message to be used instead.
string default_message = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];- Specified by:
getDefaultMessageBytesin interfaceGenericInsightOrBuilder- Returns:
- The bytes for defaultMessage.
-
setDefaultMessage
Output only. In case message_code is not yet known by the client default_message will be the message to be used instead.
string default_message = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];- Parameters:
value- The defaultMessage to set.- Returns:
- This builder for chaining.
-
clearDefaultMessage
Output only. In case message_code is not yet known by the client default_message will be the message to be used instead.
string default_message = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];- Returns:
- This builder for chaining.
-
setDefaultMessageBytes
Output only. In case message_code is not yet known by the client default_message will be the message to be used instead.
string default_message = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];- Parameters:
value- The bytes for defaultMessage to set.- Returns:
- This builder for chaining.
-
getAdditionalInformationList
public com.google.protobuf.ProtocolStringList getAdditionalInformationList()Output only. Additional information about the insight, each entry can be a logical entry and must make sense if it is displayed with line breaks between each entry. Text can contain md style links.
repeated string additional_information = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];- Specified by:
getAdditionalInformationListin interfaceGenericInsightOrBuilder- Returns:
- A list containing the additionalInformation.
-
getAdditionalInformationCount
public int getAdditionalInformationCount()Output only. Additional information about the insight, each entry can be a logical entry and must make sense if it is displayed with line breaks between each entry. Text can contain md style links.
repeated string additional_information = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];- Specified by:
getAdditionalInformationCountin interfaceGenericInsightOrBuilder- Returns:
- The count of additionalInformation.
-
getAdditionalInformation
Output only. Additional information about the insight, each entry can be a logical entry and must make sense if it is displayed with line breaks between each entry. Text can contain md style links.
repeated string additional_information = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];- Specified by:
getAdditionalInformationin interfaceGenericInsightOrBuilder- Parameters:
index- The index of the element to return.- Returns:
- The additionalInformation at the given index.
-
getAdditionalInformationBytes
public com.google.protobuf.ByteString getAdditionalInformationBytes(int index) Output only. Additional information about the insight, each entry can be a logical entry and must make sense if it is displayed with line breaks between each entry. Text can contain md style links.
repeated string additional_information = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];- Specified by:
getAdditionalInformationBytesin interfaceGenericInsightOrBuilder- Parameters:
index- The index of the value to return.- Returns:
- The bytes of the additionalInformation at the given index.
-
setAdditionalInformation
Output only. Additional information about the insight, each entry can be a logical entry and must make sense if it is displayed with line breaks between each entry. Text can contain md style links.
repeated string additional_information = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];- Parameters:
index- The index to set the value at.value- The additionalInformation to set.- Returns:
- This builder for chaining.
-
addAdditionalInformation
Output only. Additional information about the insight, each entry can be a logical entry and must make sense if it is displayed with line breaks between each entry. Text can contain md style links.
repeated string additional_information = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];- Parameters:
value- The additionalInformation to add.- Returns:
- This builder for chaining.
-
addAllAdditionalInformation
Output only. Additional information about the insight, each entry can be a logical entry and must make sense if it is displayed with line breaks between each entry. Text can contain md style links.
repeated string additional_information = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];- Parameters:
values- The additionalInformation to add.- Returns:
- This builder for chaining.
-
clearAdditionalInformation
Output only. Additional information about the insight, each entry can be a logical entry and must make sense if it is displayed with line breaks between each entry. Text can contain md style links.
repeated string additional_information = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];- Returns:
- This builder for chaining.
-
addAdditionalInformationBytes
Output only. Additional information about the insight, each entry can be a logical entry and must make sense if it is displayed with line breaks between each entry. Text can contain md style links.
repeated string additional_information = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];- Parameters:
value- The bytes of the additionalInformation to add.- Returns:
- This builder for chaining.
-