Class AnalysisMessage.Builder (1.13.0)

public static final class AnalysisMessage.Builder extends 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

Static Methods

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
TypeDescription
Descriptor

Methods

addAllResourcePaths(Iterable<String> values)

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;

Parameter
NameDescription
valuesIterable<String>

The resourcePaths to add.

Returns
TypeDescription
AnalysisMessage.Builder

This builder for chaining.

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public AnalysisMessage.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
AnalysisMessage.Builder
Overrides

addResourcePaths(String value)

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;

Parameter
NameDescription
valueString

The resourcePaths to add.

Returns
TypeDescription
AnalysisMessage.Builder

This builder for chaining.

addResourcePathsBytes(ByteString value)

public AnalysisMessage.Builder addResourcePathsBytes(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;

Parameter
NameDescription
valueByteString

The bytes of the resourcePaths to add.

Returns
TypeDescription
AnalysisMessage.Builder

This builder for chaining.

build()

public AnalysisMessage build()
Returns
TypeDescription
AnalysisMessage

buildPartial()

public AnalysisMessage buildPartial()
Returns
TypeDescription
AnalysisMessage

clear()

public AnalysisMessage.Builder clear()
Returns
TypeDescription
AnalysisMessage.Builder
Overrides

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;

Returns
TypeDescription
AnalysisMessage.Builder

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
TypeDescription
AnalysisMessage.Builder

This builder for chaining.

clearField(Descriptors.FieldDescriptor field)

public AnalysisMessage.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
NameDescription
fieldFieldDescriptor
Returns
TypeDescription
AnalysisMessage.Builder
Overrides

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;

Returns
TypeDescription
AnalysisMessage.Builder

clearOneof(Descriptors.OneofDescriptor oneof)

public AnalysisMessage.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
NameDescription
oneofOneofDescriptor
Returns
TypeDescription
AnalysisMessage.Builder
Overrides

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
TypeDescription
AnalysisMessage.Builder

This builder for chaining.

clone()

public AnalysisMessage.Builder clone()
Returns
TypeDescription
AnalysisMessage.Builder
Overrides

getArgs()

public 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;

Returns
TypeDescription
Struct

The args.

getArgsBuilder()

public 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;

Returns
TypeDescription
Builder

getArgsOrBuilder()

public 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;

Returns
TypeDescription
StructOrBuilder

getDefaultInstanceForType()

public AnalysisMessage getDefaultInstanceForType()
Returns
TypeDescription
AnalysisMessage

getDescription()

public String getDescription()

A human readable description of what the error means. It is suitable for non-internationalize display purposes.

string description = 2;

Returns
TypeDescription
String

The description.

getDescriptionBytes()

public ByteString getDescriptionBytes()

A human readable description of what the error means. It is suitable for non-internationalize display purposes.

string description = 2;

Returns
TypeDescription
ByteString

The bytes for description.

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
Descriptor
Overrides

getMessageBase()

public AnalysisMessageBase getMessageBase()

Details common to all types of Istio and ServiceMesh analysis messages.

.google.cloud.gkehub.servicemesh.v1alpha.AnalysisMessageBase message_base = 1;

Returns
TypeDescription
AnalysisMessageBase

The messageBase.

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;

Returns
TypeDescription
AnalysisMessageBase.Builder

getMessageBaseOrBuilder()

public AnalysisMessageBaseOrBuilder getMessageBaseOrBuilder()

Details common to all types of Istio and ServiceMesh analysis messages.

.google.cloud.gkehub.servicemesh.v1alpha.AnalysisMessageBase message_base = 1;

Returns
TypeDescription
AnalysisMessageBaseOrBuilder

getResourcePaths(int index)

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;

Parameter
NameDescription
indexint

The index of the element to return.

Returns
TypeDescription
String

The resourcePaths at the given index.

getResourcePathsBytes(int index)

public 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;

Parameter
NameDescription
indexint

The index of the value to return.

Returns
TypeDescription
ByteString

The bytes of the resourcePaths at the given index.

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;

Returns
TypeDescription
int

The count of resourcePaths.

getResourcePathsList()

public 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;

Returns
TypeDescription
ProtocolStringList

A list containing the resourcePaths.

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;

Returns
TypeDescription
boolean

Whether the args field is set.

hasMessageBase()

public boolean hasMessageBase()

Details common to all types of Istio and ServiceMesh analysis messages.

.google.cloud.gkehub.servicemesh.v1alpha.AnalysisMessageBase message_base = 1;

Returns
TypeDescription
boolean

Whether the messageBase field is set.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

mergeArgs(Struct value)

public AnalysisMessage.Builder mergeArgs(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;

Parameter
NameDescription
valueStruct
Returns
TypeDescription
AnalysisMessage.Builder

mergeFrom(AnalysisMessage other)

public AnalysisMessage.Builder mergeFrom(AnalysisMessage other)
Parameter
NameDescription
otherAnalysisMessage
Returns
TypeDescription
AnalysisMessage.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public AnalysisMessage.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputCodedInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
AnalysisMessage.Builder
Overrides
Exceptions
TypeDescription
IOException

mergeFrom(Message other)

public AnalysisMessage.Builder mergeFrom(Message other)
Parameter
NameDescription
otherMessage
Returns
TypeDescription
AnalysisMessage.Builder
Overrides

mergeMessageBase(AnalysisMessageBase value)

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;

Parameter
NameDescription
valueAnalysisMessageBase
Returns
TypeDescription
AnalysisMessage.Builder

mergeUnknownFields(UnknownFieldSet unknownFields)

public final AnalysisMessage.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
AnalysisMessage.Builder
Overrides

setArgs(Struct value)

public AnalysisMessage.Builder setArgs(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;

Parameter
NameDescription
valueStruct
Returns
TypeDescription
AnalysisMessage.Builder

setArgs(Struct.Builder builderForValue)

public AnalysisMessage.Builder setArgs(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;

Parameter
NameDescription
builderForValueBuilder
Returns
TypeDescription
AnalysisMessage.Builder

setDescription(String value)

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;

Parameter
NameDescription
valueString

The description to set.

Returns
TypeDescription
AnalysisMessage.Builder

This builder for chaining.

setDescriptionBytes(ByteString value)

public AnalysisMessage.Builder setDescriptionBytes(ByteString value)

A human readable description of what the error means. It is suitable for non-internationalize display purposes.

string description = 2;

Parameter
NameDescription
valueByteString

The bytes for description to set.

Returns
TypeDescription
AnalysisMessage.Builder

This builder for chaining.

setField(Descriptors.FieldDescriptor field, Object value)

public AnalysisMessage.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
AnalysisMessage.Builder
Overrides

setMessageBase(AnalysisMessageBase value)

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;

Parameter
NameDescription
valueAnalysisMessageBase
Returns
TypeDescription
AnalysisMessage.Builder

setMessageBase(AnalysisMessageBase.Builder builderForValue)

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;

Parameter
NameDescription
builderForValueAnalysisMessageBase.Builder
Returns
TypeDescription
AnalysisMessage.Builder

setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)

public AnalysisMessage.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
NameDescription
fieldFieldDescriptor
indexint
valueObject
Returns
TypeDescription
AnalysisMessage.Builder
Overrides

setResourcePaths(int index, String value)

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
NameDescription
indexint

The index to set the value at.

valueString

The resourcePaths to set.

Returns
TypeDescription
AnalysisMessage.Builder

This builder for chaining.

setUnknownFields(UnknownFieldSet unknownFields)

public final AnalysisMessage.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
AnalysisMessage.Builder
Overrides