Class AnalysisMessage.Builder (1.51.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
Type Description
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
Name Description
values Iterable<String>

The resourcePaths to add.

Returns
Type Description
AnalysisMessage.Builder

This builder for chaining.

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public AnalysisMessage.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
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
Name Description
value String

The resourcePaths to add.

Returns
Type Description
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
Name Description
value ByteString

The bytes of the resourcePaths to add.

Returns
Type Description
AnalysisMessage.Builder

This builder for chaining.

build()

public AnalysisMessage build()
Returns
Type Description
AnalysisMessage

buildPartial()

public AnalysisMessage buildPartial()
Returns
Type Description
AnalysisMessage

clear()

public AnalysisMessage.Builder clear()
Returns
Type Description
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
Type Description
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
Type Description
AnalysisMessage.Builder

This builder for chaining.

clearField(Descriptors.FieldDescriptor field)

public AnalysisMessage.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
Name Description
field FieldDescriptor
Returns
Type Description
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
Type Description
AnalysisMessage.Builder

clearOneof(Descriptors.OneofDescriptor oneof)

public AnalysisMessage.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
Name Description
oneof OneofDescriptor
Returns
Type Description
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
Type Description
AnalysisMessage.Builder

This builder for chaining.

clone()

public AnalysisMessage.Builder clone()
Returns
Type Description
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
Type Description
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
Type Description
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
Type Description
StructOrBuilder

getDefaultInstanceForType()

public AnalysisMessage getDefaultInstanceForType()
Returns
Type Description
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
Type Description
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
Type Description
ByteString

The bytes for description.

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
Type Description
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
Type Description
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
Type Description
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
Type Description
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
Name Description
index int

The index of the element to return.

Returns
Type Description
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
Name Description
index int

The index of the value to return.

Returns
Type Description
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
Type Description
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
Type Description
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
Type Description
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
Type Description
boolean

Whether the messageBase field is set.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
Type Description
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
Type Description
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
Name Description
value Struct
Returns
Type Description
AnalysisMessage.Builder

mergeFrom(AnalysisMessage other)

public AnalysisMessage.Builder mergeFrom(AnalysisMessage other)
Parameter
Name Description
other AnalysisMessage
Returns
Type Description
AnalysisMessage.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public AnalysisMessage.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input CodedInputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
AnalysisMessage.Builder
Overrides
Exceptions
Type Description
IOException

mergeFrom(Message other)

public AnalysisMessage.Builder mergeFrom(Message other)
Parameter
Name Description
other Message
Returns
Type Description
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
Name Description
value AnalysisMessageBase
Returns
Type Description
AnalysisMessage.Builder

mergeUnknownFields(UnknownFieldSet unknownFields)

public final AnalysisMessage.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
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
Name Description
value Struct
Returns
Type Description
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
Name Description
builderForValue Builder
Returns
Type Description
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
Name Description
value String

The description to set.

Returns
Type Description
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
Name Description
value ByteString

The bytes for description to set.

Returns
Type Description
AnalysisMessage.Builder

This builder for chaining.

setField(Descriptors.FieldDescriptor field, Object value)

public AnalysisMessage.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
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
Name Description
value AnalysisMessageBase
Returns
Type Description
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
Name Description
builderForValue AnalysisMessageBase.Builder
Returns
Type Description
AnalysisMessage.Builder

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

public AnalysisMessage.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
Name Description
field FieldDescriptor
index int
value Object
Returns
Type Description
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
Name Description
index int

The index to set the value at.

value String

The resourcePaths to set.

Returns
Type Description
AnalysisMessage.Builder

This builder for chaining.

setUnknownFields(UnknownFieldSet unknownFields)

public final AnalysisMessage.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
AnalysisMessage.Builder
Overrides