public static final class StructuredMessage.Builder extends GeneratedMessageV3.Builder<StructuredMessage.Builder> implements StructuredMessageOrBuilder
A rich message format, including a human readable string, a key for
identifying the message, and structured data associated with the message for
programmatic consumption.
Protobuf type google.dataflow.v1beta3.StructuredMessage
Inherited Members
com.google.protobuf.GeneratedMessageV3.Builder.getUnknownFieldSetBuilder()
com.google.protobuf.GeneratedMessageV3.Builder.internalGetMapFieldReflection(int)
com.google.protobuf.GeneratedMessageV3.Builder.internalGetMutableMapFieldReflection(int)
com.google.protobuf.GeneratedMessageV3.Builder.mergeUnknownLengthDelimitedField(int,com.google.protobuf.ByteString)
com.google.protobuf.GeneratedMessageV3.Builder.mergeUnknownVarintField(int,int)
com.google.protobuf.GeneratedMessageV3.Builder.parseUnknownField(com.google.protobuf.CodedInputStream,com.google.protobuf.ExtensionRegistryLite,int)
com.google.protobuf.GeneratedMessageV3.Builder.setUnknownFieldSetBuilder(com.google.protobuf.UnknownFieldSet.Builder)
Static Methods
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()
Methods
addAllParameters(Iterable<? extends StructuredMessage.Parameter> values)
public StructuredMessage.Builder addAllParameters(Iterable<? extends StructuredMessage.Parameter> values)
The structured data associated with this message.
repeated .google.dataflow.v1beta3.StructuredMessage.Parameter parameters = 3;
Parameter |
Name |
Description |
values |
Iterable<? extends com.google.dataflow.v1beta3.StructuredMessage.Parameter>
|
addParameters(StructuredMessage.Parameter value)
public StructuredMessage.Builder addParameters(StructuredMessage.Parameter value)
The structured data associated with this message.
repeated .google.dataflow.v1beta3.StructuredMessage.Parameter parameters = 3;
addParameters(StructuredMessage.Parameter.Builder builderForValue)
public StructuredMessage.Builder addParameters(StructuredMessage.Parameter.Builder builderForValue)
The structured data associated with this message.
repeated .google.dataflow.v1beta3.StructuredMessage.Parameter parameters = 3;
addParameters(int index, StructuredMessage.Parameter value)
public StructuredMessage.Builder addParameters(int index, StructuredMessage.Parameter value)
The structured data associated with this message.
repeated .google.dataflow.v1beta3.StructuredMessage.Parameter parameters = 3;
addParameters(int index, StructuredMessage.Parameter.Builder builderForValue)
public StructuredMessage.Builder addParameters(int index, StructuredMessage.Parameter.Builder builderForValue)
The structured data associated with this message.
repeated .google.dataflow.v1beta3.StructuredMessage.Parameter parameters = 3;
addParametersBuilder()
public StructuredMessage.Parameter.Builder addParametersBuilder()
The structured data associated with this message.
repeated .google.dataflow.v1beta3.StructuredMessage.Parameter parameters = 3;
addParametersBuilder(int index)
public StructuredMessage.Parameter.Builder addParametersBuilder(int index)
The structured data associated with this message.
repeated .google.dataflow.v1beta3.StructuredMessage.Parameter parameters = 3;
Parameter |
Name |
Description |
index |
int
|
addRepeatedField(Descriptors.FieldDescriptor field, Object value)
public StructuredMessage.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Overrides
build()
public StructuredMessage build()
buildPartial()
public StructuredMessage buildPartial()
clear()
public StructuredMessage.Builder clear()
Overrides
clearField(Descriptors.FieldDescriptor field)
public StructuredMessage.Builder clearField(Descriptors.FieldDescriptor field)
Overrides
clearMessageKey()
public StructuredMessage.Builder clearMessageKey()
Identifier for this message type. Used by external systems to
internationalize or personalize message.
string message_key = 2;
clearMessageText()
public StructuredMessage.Builder clearMessageText()
Human-readable version of message.
string message_text = 1;
clearOneof(Descriptors.OneofDescriptor oneof)
public StructuredMessage.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Overrides
clearParameters()
public StructuredMessage.Builder clearParameters()
The structured data associated with this message.
repeated .google.dataflow.v1beta3.StructuredMessage.Parameter parameters = 3;
clone()
public StructuredMessage.Builder clone()
Overrides
getDefaultInstanceForType()
public StructuredMessage getDefaultInstanceForType()
getDescriptorForType()
public Descriptors.Descriptor getDescriptorForType()
Overrides
getMessageKey()
public String getMessageKey()
Identifier for this message type. Used by external systems to
internationalize or personalize message.
string message_key = 2;
Returns |
Type |
Description |
String |
The messageKey.
|
getMessageKeyBytes()
public ByteString getMessageKeyBytes()
Identifier for this message type. Used by external systems to
internationalize or personalize message.
string message_key = 2;
Returns |
Type |
Description |
ByteString |
The bytes for messageKey.
|
getMessageText()
public String getMessageText()
Human-readable version of message.
string message_text = 1;
Returns |
Type |
Description |
String |
The messageText.
|
getMessageTextBytes()
public ByteString getMessageTextBytes()
Human-readable version of message.
string message_text = 1;
Returns |
Type |
Description |
ByteString |
The bytes for messageText.
|
getParameters(int index)
public StructuredMessage.Parameter getParameters(int index)
The structured data associated with this message.
repeated .google.dataflow.v1beta3.StructuredMessage.Parameter parameters = 3;
Parameter |
Name |
Description |
index |
int
|
getParametersBuilder(int index)
public StructuredMessage.Parameter.Builder getParametersBuilder(int index)
The structured data associated with this message.
repeated .google.dataflow.v1beta3.StructuredMessage.Parameter parameters = 3;
Parameter |
Name |
Description |
index |
int
|
getParametersBuilderList()
public List<StructuredMessage.Parameter.Builder> getParametersBuilderList()
The structured data associated with this message.
repeated .google.dataflow.v1beta3.StructuredMessage.Parameter parameters = 3;
getParametersCount()
public int getParametersCount()
The structured data associated with this message.
repeated .google.dataflow.v1beta3.StructuredMessage.Parameter parameters = 3;
Returns |
Type |
Description |
int |
|
getParametersList()
public List<StructuredMessage.Parameter> getParametersList()
The structured data associated with this message.
repeated .google.dataflow.v1beta3.StructuredMessage.Parameter parameters = 3;
getParametersOrBuilder(int index)
public StructuredMessage.ParameterOrBuilder getParametersOrBuilder(int index)
The structured data associated with this message.
repeated .google.dataflow.v1beta3.StructuredMessage.Parameter parameters = 3;
Parameter |
Name |
Description |
index |
int
|
getParametersOrBuilderList()
public List<? extends StructuredMessage.ParameterOrBuilder> getParametersOrBuilderList()
The structured data associated with this message.
repeated .google.dataflow.v1beta3.StructuredMessage.Parameter parameters = 3;
Returns |
Type |
Description |
List<? extends com.google.dataflow.v1beta3.StructuredMessage.ParameterOrBuilder> |
|
internalGetFieldAccessorTable()
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Overrides
isInitialized()
public final boolean isInitialized()
Overrides
mergeFrom(StructuredMessage other)
public StructuredMessage.Builder mergeFrom(StructuredMessage other)
public StructuredMessage.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Overrides
mergeFrom(Message other)
public StructuredMessage.Builder mergeFrom(Message other)
Parameter |
Name |
Description |
other |
Message
|
Overrides
mergeUnknownFields(UnknownFieldSet unknownFields)
public final StructuredMessage.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Overrides
removeParameters(int index)
public StructuredMessage.Builder removeParameters(int index)
The structured data associated with this message.
repeated .google.dataflow.v1beta3.StructuredMessage.Parameter parameters = 3;
Parameter |
Name |
Description |
index |
int
|
setField(Descriptors.FieldDescriptor field, Object value)
public StructuredMessage.Builder setField(Descriptors.FieldDescriptor field, Object value)
Overrides
setMessageKey(String value)
public StructuredMessage.Builder setMessageKey(String value)
Identifier for this message type. Used by external systems to
internationalize or personalize message.
string message_key = 2;
Parameter |
Name |
Description |
value |
String
The messageKey to set.
|
setMessageKeyBytes(ByteString value)
public StructuredMessage.Builder setMessageKeyBytes(ByteString value)
Identifier for this message type. Used by external systems to
internationalize or personalize message.
string message_key = 2;
Parameter |
Name |
Description |
value |
ByteString
The bytes for messageKey to set.
|
setMessageText(String value)
public StructuredMessage.Builder setMessageText(String value)
Human-readable version of message.
string message_text = 1;
Parameter |
Name |
Description |
value |
String
The messageText to set.
|
setMessageTextBytes(ByteString value)
public StructuredMessage.Builder setMessageTextBytes(ByteString value)
Human-readable version of message.
string message_text = 1;
Parameter |
Name |
Description |
value |
ByteString
The bytes for messageText to set.
|
setParameters(int index, StructuredMessage.Parameter value)
public StructuredMessage.Builder setParameters(int index, StructuredMessage.Parameter value)
The structured data associated with this message.
repeated .google.dataflow.v1beta3.StructuredMessage.Parameter parameters = 3;
setParameters(int index, StructuredMessage.Parameter.Builder builderForValue)
public StructuredMessage.Builder setParameters(int index, StructuredMessage.Parameter.Builder builderForValue)
The structured data associated with this message.
repeated .google.dataflow.v1beta3.StructuredMessage.Parameter parameters = 3;
setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
public StructuredMessage.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Overrides
setUnknownFields(UnknownFieldSet unknownFields)
public final StructuredMessage.Builder setUnknownFields(UnknownFieldSet unknownFields)
Overrides