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
Static Methods
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()
Returns
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>
|
Returns
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;
Parameter
Returns
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;
Parameter
Returns
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;
Parameters
Returns
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;
Parameters
Returns
addParametersBuilder()
public StructuredMessage.Parameter.Builder addParametersBuilder()
The structured data associated with this message.
repeated .google.dataflow.v1beta3.StructuredMessage.Parameter parameters = 3;
Returns
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
Returns
addRepeatedField(Descriptors.FieldDescriptor field, Object value)
public StructuredMessage.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
Returns
Overrides
build()
public StructuredMessage build()
Returns
buildPartial()
public StructuredMessage buildPartial()
Returns
clear()
public StructuredMessage.Builder clear()
Returns
Overrides
clearField(Descriptors.FieldDescriptor field)
public StructuredMessage.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
Returns
Overrides
clearMessageKey()
public StructuredMessage.Builder clearMessageKey()
Identifier for this message type. Used by external systems to
internationalize or personalize message.
string message_key = 2;
Returns
clearMessageText()
public StructuredMessage.Builder clearMessageText()
Human-readable version of message.
string message_text = 1;
Returns
clearOneof(Descriptors.OneofDescriptor oneof)
public StructuredMessage.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
Returns
Overrides
clearParameters()
public StructuredMessage.Builder clearParameters()
The structured data associated with this message.
repeated .google.dataflow.v1beta3.StructuredMessage.Parameter parameters = 3;
Returns
clone()
public StructuredMessage.Builder clone()
Returns
Overrides
getDefaultInstanceForType()
public StructuredMessage getDefaultInstanceForType()
Returns
getDescriptorForType()
public Descriptors.Descriptor getDescriptorForType()
Returns
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
Returns
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
Returns
getParametersBuilderList()
public List<StructuredMessage.Parameter.Builder> getParametersBuilderList()
The structured data associated with this message.
repeated .google.dataflow.v1beta3.StructuredMessage.Parameter parameters = 3;
Returns
getParametersCount()
public int getParametersCount()
The structured data associated with this message.
repeated .google.dataflow.v1beta3.StructuredMessage.Parameter parameters = 3;
Returns
getParametersList()
public List<StructuredMessage.Parameter> getParametersList()
The structured data associated with this message.
repeated .google.dataflow.v1beta3.StructuredMessage.Parameter parameters = 3;
Returns
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
Returns
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()
Returns
Overrides
isInitialized()
public final boolean isInitialized()
Returns
Overrides
mergeFrom(StructuredMessage other)
public StructuredMessage.Builder mergeFrom(StructuredMessage other)
Parameter
Returns
public StructuredMessage.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Overrides
Exceptions
mergeFrom(Message other)
public StructuredMessage.Builder mergeFrom(Message other)
Parameter
Returns
Overrides
mergeUnknownFields(UnknownFieldSet unknownFields)
public final StructuredMessage.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
Returns
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
Returns
setField(Descriptors.FieldDescriptor field, Object value)
public StructuredMessage.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
Returns
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.
|
Returns
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.
|
Returns
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.
|
Returns
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.
|
Returns
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;
Parameters
Returns
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;
Parameters
Returns
setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
public StructuredMessage.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
Returns
Overrides
setUnknownFields(UnknownFieldSet unknownFields)
public final StructuredMessage.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
Returns
Overrides