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 Details

    • getDescriptor

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

      protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()
      Specified by:
      internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessage.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.GeneratedMessage.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.GeneratedMessage.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
    • 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>
    • mergeFrom

      public AnalysisMessage.Builder mergeFrom(AnalysisMessage other)
    • isInitialized

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