Class AnalysisMessage.Builder
- java.lang.Object
-
- com.google.protobuf.AbstractMessageLite.Builder
-
- com.google.protobuf.AbstractMessage.Builder<BuilderT>
-
- com.google.protobuf.GeneratedMessageV3.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.GeneratedMessageV3.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 typegoogle.cloud.gkehub.servicemesh.v1alpha.AnalysisMessage
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description AnalysisMessage.Builder
addAllResourcePaths(Iterable<String> values)
A list of strings specifying the resource identifiers that were the cause of message generation.AnalysisMessage.Builder
addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
AnalysisMessage.Builder
addResourcePaths(String value)
A list of strings specifying the resource identifiers that were the cause of message generation.AnalysisMessage.Builder
addResourcePathsBytes(com.google.protobuf.ByteString value)
A list of strings specifying the resource identifiers that were the cause of message generation.AnalysisMessage
build()
AnalysisMessage
buildPartial()
AnalysisMessage.Builder
clear()
AnalysisMessage.Builder
clearArgs()
A UI can combine these args with a template (based on message_base.type) to produce an internationalized message.AnalysisMessage.Builder
clearDescription()
A human readable description of what the error means.AnalysisMessage.Builder
clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
AnalysisMessage.Builder
clearMessageBase()
Details common to all types of Istio and ServiceMesh analysis messages.AnalysisMessage.Builder
clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
AnalysisMessage.Builder
clearResourcePaths()
A list of strings specifying the resource identifiers that were the cause of message generation.AnalysisMessage.Builder
clone()
com.google.protobuf.Struct
getArgs()
A UI can combine these args with a template (based on message_base.type) to produce an internationalized message.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.com.google.protobuf.StructOrBuilder
getArgsOrBuilder()
A UI can combine these args with a template (based on message_base.type) to produce an internationalized message.AnalysisMessage
getDefaultInstanceForType()
String
getDescription()
A human readable description of what the error means.com.google.protobuf.ByteString
getDescriptionBytes()
A human readable description of what the error means.static com.google.protobuf.Descriptors.Descriptor
getDescriptor()
com.google.protobuf.Descriptors.Descriptor
getDescriptorForType()
AnalysisMessageBase
getMessageBase()
Details common to all types of Istio and ServiceMesh analysis messages.AnalysisMessageBase.Builder
getMessageBaseBuilder()
Details common to all types of Istio and ServiceMesh analysis messages.AnalysisMessageBaseOrBuilder
getMessageBaseOrBuilder()
Details common to all types of Istio and ServiceMesh analysis messages.String
getResourcePaths(int index)
A list of strings specifying the resource identifiers that were the cause of message generation.com.google.protobuf.ByteString
getResourcePathsBytes(int index)
A list of strings specifying the resource identifiers that were the cause of message generation.int
getResourcePathsCount()
A list of strings specifying the resource identifiers that were the cause of message generation.com.google.protobuf.ProtocolStringList
getResourcePathsList()
A list of strings specifying the resource identifiers that were the cause of message generation.boolean
hasArgs()
A UI can combine these args with a template (based on message_base.type) to produce an internationalized message.boolean
hasMessageBase()
Details common to all types of Istio and ServiceMesh analysis messages.protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable()
boolean
isInitialized()
AnalysisMessage.Builder
mergeArgs(com.google.protobuf.Struct value)
A UI can combine these args with a template (based on message_base.type) to produce an internationalized message.AnalysisMessage.Builder
mergeFrom(AnalysisMessage other)
AnalysisMessage.Builder
mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
AnalysisMessage.Builder
mergeFrom(com.google.protobuf.Message other)
AnalysisMessage.Builder
mergeMessageBase(AnalysisMessageBase value)
Details common to all types of Istio and ServiceMesh analysis messages.AnalysisMessage.Builder
mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
AnalysisMessage.Builder
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.AnalysisMessage.Builder
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.AnalysisMessage.Builder
setDescription(String value)
A human readable description of what the error means.AnalysisMessage.Builder
setDescriptionBytes(com.google.protobuf.ByteString value)
A human readable description of what the error means.AnalysisMessage.Builder
setField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
AnalysisMessage.Builder
setMessageBase(AnalysisMessageBase value)
Details common to all types of Istio and ServiceMesh analysis messages.AnalysisMessage.Builder
setMessageBase(AnalysisMessageBase.Builder builderForValue)
Details common to all types of Istio and ServiceMesh analysis messages.AnalysisMessage.Builder
setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)
AnalysisMessage.Builder
setResourcePaths(int index, String value)
A list of strings specifying the resource identifiers that were the cause of message generation.AnalysisMessage.Builder
setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
-
Methods inherited from class com.google.protobuf.GeneratedMessageV3.Builder
getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, internalGetMapField, internalGetMutableMapField, isClean, markClean, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, setUnknownFieldSetBuilder, setUnknownFieldsProto3
-
Methods inherited from class com.google.protobuf.AbstractMessage.Builder
findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toString
-
Methods inherited from class com.google.protobuf.AbstractMessageLite.Builder
addAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, newUninitializedMessageException
-
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
-
-
-
Method Detail
-
getDescriptor
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
-
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
- Specified by:
internalGetFieldAccessorTable
in classcom.google.protobuf.GeneratedMessageV3.Builder<AnalysisMessage.Builder>
-
clear
public AnalysisMessage.Builder clear()
- Specified by:
clear
in interfacecom.google.protobuf.Message.Builder
- Specified by:
clear
in interfacecom.google.protobuf.MessageLite.Builder
- Overrides:
clear
in classcom.google.protobuf.GeneratedMessageV3.Builder<AnalysisMessage.Builder>
-
getDescriptorForType
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
- Specified by:
getDescriptorForType
in interfacecom.google.protobuf.Message.Builder
- Specified by:
getDescriptorForType
in interfacecom.google.protobuf.MessageOrBuilder
- Overrides:
getDescriptorForType
in classcom.google.protobuf.GeneratedMessageV3.Builder<AnalysisMessage.Builder>
-
getDefaultInstanceForType
public AnalysisMessage getDefaultInstanceForType()
- Specified by:
getDefaultInstanceForType
in interfacecom.google.protobuf.MessageLiteOrBuilder
- Specified by:
getDefaultInstanceForType
in interfacecom.google.protobuf.MessageOrBuilder
-
build
public AnalysisMessage build()
- Specified by:
build
in interfacecom.google.protobuf.Message.Builder
- Specified by:
build
in interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
public AnalysisMessage buildPartial()
- Specified by:
buildPartial
in interfacecom.google.protobuf.Message.Builder
- Specified by:
buildPartial
in interfacecom.google.protobuf.MessageLite.Builder
-
clone
public AnalysisMessage.Builder clone()
- Specified by:
clone
in interfacecom.google.protobuf.Message.Builder
- Specified by:
clone
in interfacecom.google.protobuf.MessageLite.Builder
- Overrides:
clone
in classcom.google.protobuf.GeneratedMessageV3.Builder<AnalysisMessage.Builder>
-
setField
public AnalysisMessage.Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
- Specified by:
setField
in interfacecom.google.protobuf.Message.Builder
- Overrides:
setField
in classcom.google.protobuf.GeneratedMessageV3.Builder<AnalysisMessage.Builder>
-
clearField
public AnalysisMessage.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
- Specified by:
clearField
in interfacecom.google.protobuf.Message.Builder
- Overrides:
clearField
in classcom.google.protobuf.GeneratedMessageV3.Builder<AnalysisMessage.Builder>
-
clearOneof
public AnalysisMessage.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
- Specified by:
clearOneof
in interfacecom.google.protobuf.Message.Builder
- Overrides:
clearOneof
in classcom.google.protobuf.GeneratedMessageV3.Builder<AnalysisMessage.Builder>
-
setRepeatedField
public AnalysisMessage.Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)
- Specified by:
setRepeatedField
in interfacecom.google.protobuf.Message.Builder
- Overrides:
setRepeatedField
in classcom.google.protobuf.GeneratedMessageV3.Builder<AnalysisMessage.Builder>
-
addRepeatedField
public AnalysisMessage.Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
- Specified by:
addRepeatedField
in interfacecom.google.protobuf.Message.Builder
- Overrides:
addRepeatedField
in classcom.google.protobuf.GeneratedMessageV3.Builder<AnalysisMessage.Builder>
-
mergeFrom
public AnalysisMessage.Builder mergeFrom(com.google.protobuf.Message other)
- Specified by:
mergeFrom
in interfacecom.google.protobuf.Message.Builder
- Overrides:
mergeFrom
in classcom.google.protobuf.AbstractMessage.Builder<AnalysisMessage.Builder>
-
mergeFrom
public AnalysisMessage.Builder mergeFrom(AnalysisMessage other)
-
isInitialized
public final boolean isInitialized()
- Specified by:
isInitialized
in interfacecom.google.protobuf.MessageLiteOrBuilder
- Overrides:
isInitialized
in classcom.google.protobuf.GeneratedMessageV3.Builder<AnalysisMessage.Builder>
-
mergeFrom
public AnalysisMessage.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
- Specified by:
mergeFrom
in interfacecom.google.protobuf.Message.Builder
- Specified by:
mergeFrom
in interfacecom.google.protobuf.MessageLite.Builder
- Overrides:
mergeFrom
in 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:
hasMessageBase
in interfaceAnalysisMessageOrBuilder
- Returns:
- Whether the messageBase field is set.
-
getMessageBase
public AnalysisMessageBase getMessageBase()
Details common to all types of Istio and ServiceMesh analysis messages.
.google.cloud.gkehub.servicemesh.v1alpha.AnalysisMessageBase message_base = 1;
- Specified by:
getMessageBase
in interfaceAnalysisMessageOrBuilder
- Returns:
- The messageBase.
-
setMessageBase
public AnalysisMessage.Builder setMessageBase(AnalysisMessageBase value)
Details common to all types of Istio and ServiceMesh analysis messages.
.google.cloud.gkehub.servicemesh.v1alpha.AnalysisMessageBase message_base = 1;
-
setMessageBase
public AnalysisMessage.Builder setMessageBase(AnalysisMessageBase.Builder builderForValue)
Details common to all types of Istio and ServiceMesh analysis messages.
.google.cloud.gkehub.servicemesh.v1alpha.AnalysisMessageBase message_base = 1;
-
mergeMessageBase
public AnalysisMessage.Builder mergeMessageBase(AnalysisMessageBase value)
Details common to all types of Istio and ServiceMesh analysis messages.
.google.cloud.gkehub.servicemesh.v1alpha.AnalysisMessageBase message_base = 1;
-
clearMessageBase
public AnalysisMessage.Builder clearMessageBase()
Details common to all types of Istio and ServiceMesh analysis messages.
.google.cloud.gkehub.servicemesh.v1alpha.AnalysisMessageBase message_base = 1;
-
getMessageBaseBuilder
public AnalysisMessageBase.Builder getMessageBaseBuilder()
Details common to all types of Istio and ServiceMesh analysis messages.
.google.cloud.gkehub.servicemesh.v1alpha.AnalysisMessageBase message_base = 1;
-
getMessageBaseOrBuilder
public AnalysisMessageBaseOrBuilder getMessageBaseOrBuilder()
Details common to all types of Istio and ServiceMesh analysis messages.
.google.cloud.gkehub.servicemesh.v1alpha.AnalysisMessageBase message_base = 1;
- Specified by:
getMessageBaseOrBuilder
in interfaceAnalysisMessageOrBuilder
-
getDescription
public String getDescription()
A human readable description of what the error means. It is suitable for non-internationalize display purposes.
string description = 2;
- Specified by:
getDescription
in 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:
getDescriptionBytes
in interfaceAnalysisMessageOrBuilder
- Returns:
- The bytes for description.
-
setDescription
public AnalysisMessage.Builder setDescription(String value)
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
public AnalysisMessage.Builder 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
public AnalysisMessage.Builder setDescriptionBytes(com.google.protobuf.ByteString value)
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:
getResourcePathsList
in 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:
getResourcePathsCount
in interfaceAnalysisMessageOrBuilder
- Returns:
- The count of resourcePaths.
-
getResourcePaths
public String getResourcePaths(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:
getResourcePaths
in 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:
getResourcePathsBytes
in interfaceAnalysisMessageOrBuilder
- Parameters:
index
- The index of the value to return.- Returns:
- The bytes of the resourcePaths at the given index.
-
setResourcePaths
public AnalysisMessage.Builder setResourcePaths(int index, String value)
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
public AnalysisMessage.Builder addResourcePaths(String value)
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
public AnalysisMessage.Builder addAllResourcePaths(Iterable<String> values)
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
public AnalysisMessage.Builder 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
public AnalysisMessage.Builder addResourcePathsBytes(com.google.protobuf.ByteString value)
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:
hasArgs
in 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:
getArgs
in interfaceAnalysisMessageOrBuilder
- Returns:
- The args.
-
setArgs
public AnalysisMessage.Builder 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.
.google.protobuf.Struct args = 4;
-
setArgs
public AnalysisMessage.Builder 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.
.google.protobuf.Struct args = 4;
-
mergeArgs
public AnalysisMessage.Builder mergeArgs(com.google.protobuf.Struct value)
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
public AnalysisMessage.Builder 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:
getArgsOrBuilder
in interfaceAnalysisMessageOrBuilder
-
setUnknownFields
public final AnalysisMessage.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
- Specified by:
setUnknownFields
in interfacecom.google.protobuf.Message.Builder
- Overrides:
setUnknownFields
in classcom.google.protobuf.GeneratedMessageV3.Builder<AnalysisMessage.Builder>
-
mergeUnknownFields
public final AnalysisMessage.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
- Specified by:
mergeUnknownFields
in interfacecom.google.protobuf.Message.Builder
- Overrides:
mergeUnknownFields
in classcom.google.protobuf.GeneratedMessageV3.Builder<AnalysisMessage.Builder>
-
-