Class 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 type google.cloud.gkehub.servicemesh.v1alpha.AnalysisMessage
    • Method Detail

      • getDescriptor

        public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
      • internalGetFieldAccessorTable

        protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
        Specified by:
        internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessageV3.Builder<AnalysisMessage.Builder>
      • clear

        public AnalysisMessage.Builder clear()
        Specified by:
        clear in interface com.google.protobuf.Message.Builder
        Specified by:
        clear in interface com.google.protobuf.MessageLite.Builder
        Overrides:
        clear in class com.google.protobuf.GeneratedMessageV3.Builder<AnalysisMessage.Builder>
      • getDescriptorForType

        public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
        Specified by:
        getDescriptorForType in interface com.google.protobuf.Message.Builder
        Specified by:
        getDescriptorForType in interface com.google.protobuf.MessageOrBuilder
        Overrides:
        getDescriptorForType in class com.google.protobuf.GeneratedMessageV3.Builder<AnalysisMessage.Builder>
      • getDefaultInstanceForType

        public AnalysisMessage getDefaultInstanceForType()
        Specified by:
        getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuilder
        Specified by:
        getDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilder
      • build

        public AnalysisMessage build()
        Specified by:
        build in interface com.google.protobuf.Message.Builder
        Specified by:
        build in interface com.google.protobuf.MessageLite.Builder
      • buildPartial

        public AnalysisMessage buildPartial()
        Specified by:
        buildPartial in interface com.google.protobuf.Message.Builder
        Specified by:
        buildPartial in interface com.google.protobuf.MessageLite.Builder
      • clone

        public AnalysisMessage.Builder clone()
        Specified by:
        clone in interface com.google.protobuf.Message.Builder
        Specified by:
        clone in interface com.google.protobuf.MessageLite.Builder
        Overrides:
        clone in class com.google.protobuf.GeneratedMessageV3.Builder<AnalysisMessage.Builder>
      • setField

        public AnalysisMessage.Builder setField​(com.google.protobuf.Descriptors.FieldDescriptor field,
                                                Object value)
        Specified by:
        setField in interface com.google.protobuf.Message.Builder
        Overrides:
        setField in class com.google.protobuf.GeneratedMessageV3.Builder<AnalysisMessage.Builder>
      • clearField

        public AnalysisMessage.Builder clearField​(com.google.protobuf.Descriptors.FieldDescriptor field)
        Specified by:
        clearField in interface com.google.protobuf.Message.Builder
        Overrides:
        clearField in class com.google.protobuf.GeneratedMessageV3.Builder<AnalysisMessage.Builder>
      • clearOneof

        public AnalysisMessage.Builder clearOneof​(com.google.protobuf.Descriptors.OneofDescriptor oneof)
        Specified by:
        clearOneof in interface com.google.protobuf.Message.Builder
        Overrides:
        clearOneof in class com.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 interface com.google.protobuf.Message.Builder
        Overrides:
        setRepeatedField in class com.google.protobuf.GeneratedMessageV3.Builder<AnalysisMessage.Builder>
      • addRepeatedField

        public AnalysisMessage.Builder addRepeatedField​(com.google.protobuf.Descriptors.FieldDescriptor field,
                                                        Object value)
        Specified by:
        addRepeatedField in interface com.google.protobuf.Message.Builder
        Overrides:
        addRepeatedField in class com.google.protobuf.GeneratedMessageV3.Builder<AnalysisMessage.Builder>
      • mergeFrom

        public AnalysisMessage.Builder mergeFrom​(com.google.protobuf.Message other)
        Specified by:
        mergeFrom in interface com.google.protobuf.Message.Builder
        Overrides:
        mergeFrom in class com.google.protobuf.AbstractMessage.Builder<AnalysisMessage.Builder>
      • isInitialized

        public final boolean isInitialized()
        Specified by:
        isInitialized in interface com.google.protobuf.MessageLiteOrBuilder
        Overrides:
        isInitialized in class com.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 interface com.google.protobuf.Message.Builder
        Specified by:
        mergeFrom in interface com.google.protobuf.MessageLite.Builder
        Overrides:
        mergeFrom in class com.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 interface AnalysisMessageOrBuilder
        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 interface AnalysisMessageOrBuilder
        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;
      • 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 interface AnalysisMessageOrBuilder
        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 interface AnalysisMessageOrBuilder
        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 interface AnalysisMessageOrBuilder
        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 interface AnalysisMessageOrBuilder
        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 interface AnalysisMessageOrBuilder
        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 interface AnalysisMessageOrBuilder
        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 interface AnalysisMessageOrBuilder
        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 interface AnalysisMessageOrBuilder
        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 interface AnalysisMessageOrBuilder
      • setUnknownFields

        public final AnalysisMessage.Builder setUnknownFields​(com.google.protobuf.UnknownFieldSet unknownFields)
        Specified by:
        setUnknownFields in interface com.google.protobuf.Message.Builder
        Overrides:
        setUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<AnalysisMessage.Builder>
      • mergeUnknownFields

        public final AnalysisMessage.Builder mergeUnknownFields​(com.google.protobuf.UnknownFieldSet unknownFields)
        Specified by:
        mergeUnknownFields in interface com.google.protobuf.Message.Builder
        Overrides:
        mergeUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<AnalysisMessage.Builder>