Class AnalysisMessage.Builder
java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessage.Builder<AnalysisMessage.Builder>
com.google.cloud.gkehub.servicemesh.v1alpha.AnalysisMessage.Builder
- All Implemented Interfaces:
AnalysisMessageOrBuilder,com.google.protobuf.Message.Builder,com.google.protobuf.MessageLite.Builder,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,Cloneable
- Enclosing class:
- AnalysisMessage
public static final class AnalysisMessage.Builder
extends com.google.protobuf.GeneratedMessage.Builder<AnalysisMessage.Builder>
implements AnalysisMessageOrBuilder
AnalysisMessage is a single message produced by an analyzer, and it used to communicate to the end user about the state of their Service Mesh configuration.Protobuf type
google.cloud.gkehub.servicemesh.v1alpha.AnalysisMessage-
Method Summary
Modifier and TypeMethodDescriptionaddAllResourcePaths(Iterable<String> values) A list of strings specifying the resource identifiers that were the cause of message generation.addResourcePaths(String value) A list of strings specifying the resource identifiers that were the cause of message generation.addResourcePathsBytes(com.google.protobuf.ByteString value) A list of strings specifying the resource identifiers that were the cause of message generation.build()clear()A UI can combine these args with a template (based on message_base.type) to produce an internationalized message.A human readable description of what the error means.Details common to all types of Istio and ServiceMesh analysis messages.A list of strings specifying the resource identifiers that were the cause of message generation.com.google.protobuf.StructgetArgs()A UI can combine these args with a template (based on message_base.type) to produce an internationalized message.com.google.protobuf.Struct.BuilderA UI can combine these args with a template (based on message_base.type) to produce an internationalized message.com.google.protobuf.StructOrBuilderA UI can combine these args with a template (based on message_base.type) to produce an internationalized message.A human readable description of what the error means.com.google.protobuf.ByteStringA human readable description of what the error means.static final com.google.protobuf.Descriptors.Descriptorcom.google.protobuf.Descriptors.DescriptorDetails common to all types of Istio and ServiceMesh analysis messages.Details common to all types of Istio and ServiceMesh analysis messages.Details common to all types of Istio and ServiceMesh analysis messages.getResourcePaths(int index) A list of strings specifying the resource identifiers that were the cause of message generation.com.google.protobuf.ByteStringgetResourcePathsBytes(int index) A list of strings specifying the resource identifiers that were the cause of message generation.intA list of strings specifying the resource identifiers that were the cause of message generation.com.google.protobuf.ProtocolStringListA list of strings specifying the resource identifiers that were the cause of message generation.booleanhasArgs()A UI can combine these args with a template (based on message_base.type) to produce an internationalized message.booleanDetails common to all types of Istio and ServiceMesh analysis messages.protected com.google.protobuf.GeneratedMessage.FieldAccessorTablefinal booleanmergeArgs(com.google.protobuf.Struct value) A UI can combine these args with a template (based on message_base.type) to produce an internationalized message.mergeFrom(AnalysisMessage other) mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) mergeFrom(com.google.protobuf.Message other) Details common to all types of Istio and ServiceMesh analysis messages.setArgs(com.google.protobuf.Struct value) A UI can combine these args with a template (based on message_base.type) to produce an internationalized message.setArgs(com.google.protobuf.Struct.Builder builderForValue) A UI can combine these args with a template (based on message_base.type) to produce an internationalized message.setDescription(String value) A human readable description of what the error means.setDescriptionBytes(com.google.protobuf.ByteString value) A human readable description of what the error means.Details common to all types of Istio and ServiceMesh analysis messages.setMessageBase(AnalysisMessageBase.Builder builderForValue) Details common to all types of Istio and ServiceMesh analysis messages.setResourcePaths(int index, String value) A list of strings specifying the resource identifiers that were the cause of message generation.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<AnalysisMessage.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<AnalysisMessage.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<AnalysisMessage.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<AnalysisMessage.Builder>
-
mergeFrom
-
isInitialized
public final boolean isInitialized()- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessage.Builder<AnalysisMessage.Builder>
-
mergeFrom
public AnalysisMessage.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<AnalysisMessage.Builder>- Throws:
IOException
-
hasMessageBase
public boolean hasMessageBase()Details common to all types of Istio and ServiceMesh analysis messages.
.google.cloud.gkehub.servicemesh.v1alpha.AnalysisMessageBase message_base = 1;- Specified by:
hasMessageBasein interfaceAnalysisMessageOrBuilder- Returns:
- Whether the messageBase field is set.
-
getMessageBase
Details common to all types of Istio and ServiceMesh analysis messages.
.google.cloud.gkehub.servicemesh.v1alpha.AnalysisMessageBase message_base = 1;- Specified by:
getMessageBasein interfaceAnalysisMessageOrBuilder- Returns:
- The messageBase.
-
setMessageBase
Details common to all types of Istio and ServiceMesh analysis messages.
.google.cloud.gkehub.servicemesh.v1alpha.AnalysisMessageBase message_base = 1; -
setMessageBase
Details common to all types of Istio and ServiceMesh analysis messages.
.google.cloud.gkehub.servicemesh.v1alpha.AnalysisMessageBase message_base = 1; -
mergeMessageBase
Details common to all types of Istio and ServiceMesh analysis messages.
.google.cloud.gkehub.servicemesh.v1alpha.AnalysisMessageBase message_base = 1; -
clearMessageBase
Details common to all types of Istio and ServiceMesh analysis messages.
.google.cloud.gkehub.servicemesh.v1alpha.AnalysisMessageBase message_base = 1; -
getMessageBaseBuilder
Details common to all types of Istio and ServiceMesh analysis messages.
.google.cloud.gkehub.servicemesh.v1alpha.AnalysisMessageBase message_base = 1; -
getMessageBaseOrBuilder
Details common to all types of Istio and ServiceMesh analysis messages.
.google.cloud.gkehub.servicemesh.v1alpha.AnalysisMessageBase message_base = 1;- Specified by:
getMessageBaseOrBuilderin interfaceAnalysisMessageOrBuilder
-
getDescription
A human readable description of what the error means. It is suitable for non-internationalize display purposes.
string description = 2;- Specified by:
getDescriptionin interfaceAnalysisMessageOrBuilder- Returns:
- The description.
-
getDescriptionBytes
public com.google.protobuf.ByteString getDescriptionBytes()A human readable description of what the error means. It is suitable for non-internationalize display purposes.
string description = 2;- Specified by:
getDescriptionBytesin interfaceAnalysisMessageOrBuilder- Returns:
- The bytes for description.
-
setDescription
A human readable description of what the error means. It is suitable for non-internationalize display purposes.
string description = 2;- Parameters:
value- The description to set.- Returns:
- This builder for chaining.
-
clearDescription
A human readable description of what the error means. It is suitable for non-internationalize display purposes.
string description = 2;- Returns:
- This builder for chaining.
-
setDescriptionBytes
A human readable description of what the error means. It is suitable for non-internationalize display purposes.
string description = 2;- Parameters:
value- The bytes for description to set.- Returns:
- This builder for chaining.
-
getResourcePathsList
public com.google.protobuf.ProtocolStringList getResourcePathsList()A list of strings specifying the resource identifiers that were the cause of message generation. A "path" here may be: * MEMBERSHIP_ID if the cause is a specific member cluster * MEMBERSHIP_ID/(NAMESPACE\/)?RESOURCETYPE/NAME if the cause is a resource in a cluster
repeated string resource_paths = 3;- Specified by:
getResourcePathsListin interfaceAnalysisMessageOrBuilder- Returns:
- A list containing the resourcePaths.
-
getResourcePathsCount
public int getResourcePathsCount()A list of strings specifying the resource identifiers that were the cause of message generation. A "path" here may be: * MEMBERSHIP_ID if the cause is a specific member cluster * MEMBERSHIP_ID/(NAMESPACE\/)?RESOURCETYPE/NAME if the cause is a resource in a cluster
repeated string resource_paths = 3;- Specified by:
getResourcePathsCountin interfaceAnalysisMessageOrBuilder- Returns:
- The count of resourcePaths.
-
getResourcePaths
A list of strings specifying the resource identifiers that were the cause of message generation. A "path" here may be: * MEMBERSHIP_ID if the cause is a specific member cluster * MEMBERSHIP_ID/(NAMESPACE\/)?RESOURCETYPE/NAME if the cause is a resource in a cluster
repeated string resource_paths = 3;- Specified by:
getResourcePathsin interfaceAnalysisMessageOrBuilder- Parameters:
index- The index of the element to return.- Returns:
- The resourcePaths at the given index.
-
getResourcePathsBytes
public com.google.protobuf.ByteString getResourcePathsBytes(int index) A list of strings specifying the resource identifiers that were the cause of message generation. A "path" here may be: * MEMBERSHIP_ID if the cause is a specific member cluster * MEMBERSHIP_ID/(NAMESPACE\/)?RESOURCETYPE/NAME if the cause is a resource in a cluster
repeated string resource_paths = 3;- Specified by:
getResourcePathsBytesin interfaceAnalysisMessageOrBuilder- Parameters:
index- The index of the value to return.- Returns:
- The bytes of the resourcePaths at the given index.
-
setResourcePaths
A list of strings specifying the resource identifiers that were the cause of message generation. A "path" here may be: * MEMBERSHIP_ID if the cause is a specific member cluster * MEMBERSHIP_ID/(NAMESPACE\/)?RESOURCETYPE/NAME if the cause is a resource in a cluster
repeated string resource_paths = 3;- Parameters:
index- The index to set the value at.value- The resourcePaths to set.- Returns:
- This builder for chaining.
-
addResourcePaths
A list of strings specifying the resource identifiers that were the cause of message generation. A "path" here may be: * MEMBERSHIP_ID if the cause is a specific member cluster * MEMBERSHIP_ID/(NAMESPACE\/)?RESOURCETYPE/NAME if the cause is a resource in a cluster
repeated string resource_paths = 3;- Parameters:
value- The resourcePaths to add.- Returns:
- This builder for chaining.
-
addAllResourcePaths
A list of strings specifying the resource identifiers that were the cause of message generation. A "path" here may be: * MEMBERSHIP_ID if the cause is a specific member cluster * MEMBERSHIP_ID/(NAMESPACE\/)?RESOURCETYPE/NAME if the cause is a resource in a cluster
repeated string resource_paths = 3;- Parameters:
values- The resourcePaths to add.- Returns:
- This builder for chaining.
-
clearResourcePaths
A list of strings specifying the resource identifiers that were the cause of message generation. A "path" here may be: * MEMBERSHIP_ID if the cause is a specific member cluster * MEMBERSHIP_ID/(NAMESPACE\/)?RESOURCETYPE/NAME if the cause is a resource in a cluster
repeated string resource_paths = 3;- Returns:
- This builder for chaining.
-
addResourcePathsBytes
A list of strings specifying the resource identifiers that were the cause of message generation. A "path" here may be: * MEMBERSHIP_ID if the cause is a specific member cluster * MEMBERSHIP_ID/(NAMESPACE\/)?RESOURCETYPE/NAME if the cause is a resource in a cluster
repeated string resource_paths = 3;- Parameters:
value- The bytes of the resourcePaths to add.- Returns:
- This builder for chaining.
-
hasArgs
public boolean hasArgs()A UI can combine these args with a template (based on message_base.type) to produce an internationalized message.
.google.protobuf.Struct args = 4;- Specified by:
hasArgsin interfaceAnalysisMessageOrBuilder- Returns:
- Whether the args field is set.
-
getArgs
public com.google.protobuf.Struct getArgs()A UI can combine these args with a template (based on message_base.type) to produce an internationalized message.
.google.protobuf.Struct args = 4;- Specified by:
getArgsin interfaceAnalysisMessageOrBuilder- Returns:
- The args.
-
setArgs
A UI can combine these args with a template (based on message_base.type) to produce an internationalized message.
.google.protobuf.Struct args = 4; -
setArgs
A UI can combine these args with a template (based on message_base.type) to produce an internationalized message.
.google.protobuf.Struct args = 4; -
mergeArgs
A UI can combine these args with a template (based on message_base.type) to produce an internationalized message.
.google.protobuf.Struct args = 4; -
clearArgs
A UI can combine these args with a template (based on message_base.type) to produce an internationalized message.
.google.protobuf.Struct args = 4; -
getArgsBuilder
public com.google.protobuf.Struct.Builder getArgsBuilder()A UI can combine these args with a template (based on message_base.type) to produce an internationalized message.
.google.protobuf.Struct args = 4; -
getArgsOrBuilder
public com.google.protobuf.StructOrBuilder getArgsOrBuilder()A UI can combine these args with a template (based on message_base.type) to produce an internationalized message.
.google.protobuf.Struct args = 4;- Specified by:
getArgsOrBuilderin interfaceAnalysisMessageOrBuilder
-