Package io.grpc.binarylog.v1
Class Trailer.Builder
- java.lang.Object
-
- com.google.protobuf.AbstractMessageLite.Builder
-
- com.google.protobuf.AbstractMessage.Builder<BuilderT>
-
- com.google.protobuf.GeneratedMessageV3.Builder<Trailer.Builder>
-
- io.grpc.binarylog.v1.Trailer.Builder
-
- All Implemented Interfaces:
Message.Builder
,MessageLite.Builder
,MessageLiteOrBuilder
,MessageOrBuilder
,TrailerOrBuilder
,Cloneable
- Enclosing class:
- Trailer
public static final class Trailer.Builder extends GeneratedMessageV3.Builder<Trailer.Builder> implements TrailerOrBuilder
Protobuf typegrpc.binarylog.v1.Trailer
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description Trailer.Builder
addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Trailer
build()
Trailer
buildPartial()
Trailer.Builder
clear()
Trailer.Builder
clearField(Descriptors.FieldDescriptor field)
Trailer.Builder
clearMetadata()
This contains only the metadata from the application.Trailer.Builder
clearOneof(Descriptors.OneofDescriptor oneof)
Trailer.Builder
clearStatusCode()
The gRPC status code.Trailer.Builder
clearStatusDetails()
The value of the 'grpc-status-details-bin' metadata key.Trailer.Builder
clearStatusMessage()
An original status message before any transport specific encoding.Trailer.Builder
clone()
Trailer
getDefaultInstanceForType()
static Descriptors.Descriptor
getDescriptor()
Descriptors.Descriptor
getDescriptorForType()
Metadata
getMetadata()
This contains only the metadata from the application.Metadata.Builder
getMetadataBuilder()
This contains only the metadata from the application.MetadataOrBuilder
getMetadataOrBuilder()
This contains only the metadata from the application.int
getStatusCode()
The gRPC status code.ByteString
getStatusDetails()
The value of the 'grpc-status-details-bin' metadata key.String
getStatusMessage()
An original status message before any transport specific encoding.ByteString
getStatusMessageBytes()
An original status message before any transport specific encoding.boolean
hasMetadata()
This contains only the metadata from the application.protected GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable()
boolean
isInitialized()
Trailer.Builder
mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Trailer.Builder
mergeFrom(Message other)
Trailer.Builder
mergeFrom(Trailer other)
Trailer.Builder
mergeMetadata(Metadata value)
This contains only the metadata from the application.Trailer.Builder
mergeUnknownFields(UnknownFieldSet unknownFields)
Trailer.Builder
setField(Descriptors.FieldDescriptor field, Object value)
Trailer.Builder
setMetadata(Metadata value)
This contains only the metadata from the application.Trailer.Builder
setMetadata(Metadata.Builder builderForValue)
This contains only the metadata from the application.Trailer.Builder
setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Trailer.Builder
setStatusCode(int value)
The gRPC status code.Trailer.Builder
setStatusDetails(ByteString value)
The value of the 'grpc-status-details-bin' metadata key.Trailer.Builder
setStatusMessage(String value)
An original status message before any transport specific encoding.Trailer.Builder
setStatusMessageBytes(ByteString value)
An original status message before any transport specific encoding.Trailer.Builder
setUnknownFields(UnknownFieldSet unknownFields)
-
Methods inherited from class com.google.protobuf.GeneratedMessageV3.Builder
getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, internalGetMapField, internalGetMapFieldReflection, internalGetMutableMapField, internalGetMutableMapFieldReflection, isClean, markClean, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, setUnknownFieldSetBuilder, setUnknownFieldsProto3
-
Methods inherited from class com.google.protobuf.AbstractMessage.Builder
findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toString
-
Methods inherited from class com.google.protobuf.AbstractMessageLite.Builder
addAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, newUninitializedMessageException
-
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface com.google.protobuf.Message.Builder
mergeDelimitedFrom, mergeDelimitedFrom
-
Methods inherited from interface com.google.protobuf.MessageLite.Builder
mergeFrom
-
Methods inherited from interface com.google.protobuf.MessageOrBuilder
findInitializationErrors, getAllFields, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
-
-
-
-
Method Detail
-
getDescriptor
public static final Descriptors.Descriptor getDescriptor()
-
internalGetFieldAccessorTable
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
- Specified by:
internalGetFieldAccessorTable
in classGeneratedMessageV3.Builder<Trailer.Builder>
-
clear
public Trailer.Builder clear()
- Specified by:
clear
in interfaceMessage.Builder
- Specified by:
clear
in interfaceMessageLite.Builder
- Overrides:
clear
in classGeneratedMessageV3.Builder<Trailer.Builder>
-
getDescriptorForType
public Descriptors.Descriptor getDescriptorForType()
- Specified by:
getDescriptorForType
in interfaceMessage.Builder
- Specified by:
getDescriptorForType
in interfaceMessageOrBuilder
- Overrides:
getDescriptorForType
in classGeneratedMessageV3.Builder<Trailer.Builder>
-
getDefaultInstanceForType
public Trailer getDefaultInstanceForType()
- Specified by:
getDefaultInstanceForType
in interfaceMessageLiteOrBuilder
- Specified by:
getDefaultInstanceForType
in interfaceMessageOrBuilder
-
build
public Trailer build()
- Specified by:
build
in interfaceMessage.Builder
- Specified by:
build
in interfaceMessageLite.Builder
-
buildPartial
public Trailer buildPartial()
- Specified by:
buildPartial
in interfaceMessage.Builder
- Specified by:
buildPartial
in interfaceMessageLite.Builder
-
clone
public Trailer.Builder clone()
- Specified by:
clone
in interfaceMessage.Builder
- Specified by:
clone
in interfaceMessageLite.Builder
- Overrides:
clone
in classGeneratedMessageV3.Builder<Trailer.Builder>
-
setField
public Trailer.Builder setField(Descriptors.FieldDescriptor field, Object value)
- Specified by:
setField
in interfaceMessage.Builder
- Overrides:
setField
in classGeneratedMessageV3.Builder<Trailer.Builder>
-
clearField
public Trailer.Builder clearField(Descriptors.FieldDescriptor field)
- Specified by:
clearField
in interfaceMessage.Builder
- Overrides:
clearField
in classGeneratedMessageV3.Builder<Trailer.Builder>
-
clearOneof
public Trailer.Builder clearOneof(Descriptors.OneofDescriptor oneof)
- Specified by:
clearOneof
in interfaceMessage.Builder
- Overrides:
clearOneof
in classGeneratedMessageV3.Builder<Trailer.Builder>
-
setRepeatedField
public Trailer.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
- Specified by:
setRepeatedField
in interfaceMessage.Builder
- Overrides:
setRepeatedField
in classGeneratedMessageV3.Builder<Trailer.Builder>
-
addRepeatedField
public Trailer.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
- Specified by:
addRepeatedField
in interfaceMessage.Builder
- Overrides:
addRepeatedField
in classGeneratedMessageV3.Builder<Trailer.Builder>
-
mergeFrom
public Trailer.Builder mergeFrom(Message other)
- Specified by:
mergeFrom
in interfaceMessage.Builder
- Overrides:
mergeFrom
in classAbstractMessage.Builder<Trailer.Builder>
-
mergeFrom
public Trailer.Builder mergeFrom(Trailer other)
-
isInitialized
public final boolean isInitialized()
- Specified by:
isInitialized
in interfaceMessageLiteOrBuilder
- Overrides:
isInitialized
in classGeneratedMessageV3.Builder<Trailer.Builder>
-
mergeFrom
public Trailer.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry) throws IOException
- Specified by:
mergeFrom
in interfaceMessage.Builder
- Specified by:
mergeFrom
in interfaceMessageLite.Builder
- Overrides:
mergeFrom
in classAbstractMessage.Builder<Trailer.Builder>
- Throws:
IOException
-
hasMetadata
public boolean hasMetadata()
This contains only the metadata from the application.
.grpc.binarylog.v1.Metadata metadata = 1;
- Specified by:
hasMetadata
in interfaceTrailerOrBuilder
- Returns:
- Whether the metadata field is set.
-
getMetadata
public Metadata getMetadata()
This contains only the metadata from the application.
.grpc.binarylog.v1.Metadata metadata = 1;
- Specified by:
getMetadata
in interfaceTrailerOrBuilder
- Returns:
- The metadata.
-
setMetadata
public Trailer.Builder setMetadata(Metadata value)
This contains only the metadata from the application.
.grpc.binarylog.v1.Metadata metadata = 1;
-
setMetadata
public Trailer.Builder setMetadata(Metadata.Builder builderForValue)
This contains only the metadata from the application.
.grpc.binarylog.v1.Metadata metadata = 1;
-
mergeMetadata
public Trailer.Builder mergeMetadata(Metadata value)
This contains only the metadata from the application.
.grpc.binarylog.v1.Metadata metadata = 1;
-
clearMetadata
public Trailer.Builder clearMetadata()
This contains only the metadata from the application.
.grpc.binarylog.v1.Metadata metadata = 1;
-
getMetadataBuilder
public Metadata.Builder getMetadataBuilder()
This contains only the metadata from the application.
.grpc.binarylog.v1.Metadata metadata = 1;
-
getMetadataOrBuilder
public MetadataOrBuilder getMetadataOrBuilder()
This contains only the metadata from the application.
.grpc.binarylog.v1.Metadata metadata = 1;
- Specified by:
getMetadataOrBuilder
in interfaceTrailerOrBuilder
-
getStatusCode
public int getStatusCode()
The gRPC status code.
uint32 status_code = 2;
- Specified by:
getStatusCode
in interfaceTrailerOrBuilder
- Returns:
- The statusCode.
-
setStatusCode
public Trailer.Builder setStatusCode(int value)
The gRPC status code.
uint32 status_code = 2;
- Parameters:
value
- The statusCode to set.- Returns:
- This builder for chaining.
-
clearStatusCode
public Trailer.Builder clearStatusCode()
The gRPC status code.
uint32 status_code = 2;
- Returns:
- This builder for chaining.
-
getStatusMessage
public String getStatusMessage()
An original status message before any transport specific encoding.
string status_message = 3;
- Specified by:
getStatusMessage
in interfaceTrailerOrBuilder
- Returns:
- The statusMessage.
-
getStatusMessageBytes
public ByteString getStatusMessageBytes()
An original status message before any transport specific encoding.
string status_message = 3;
- Specified by:
getStatusMessageBytes
in interfaceTrailerOrBuilder
- Returns:
- The bytes for statusMessage.
-
setStatusMessage
public Trailer.Builder setStatusMessage(String value)
An original status message before any transport specific encoding.
string status_message = 3;
- Parameters:
value
- The statusMessage to set.- Returns:
- This builder for chaining.
-
clearStatusMessage
public Trailer.Builder clearStatusMessage()
An original status message before any transport specific encoding.
string status_message = 3;
- Returns:
- This builder for chaining.
-
setStatusMessageBytes
public Trailer.Builder setStatusMessageBytes(ByteString value)
An original status message before any transport specific encoding.
string status_message = 3;
- Parameters:
value
- The bytes for statusMessage to set.- Returns:
- This builder for chaining.
-
getStatusDetails
public ByteString getStatusDetails()
The value of the 'grpc-status-details-bin' metadata key. If present, this is always an encoded 'google.rpc.Status' message.
bytes status_details = 4;
- Specified by:
getStatusDetails
in interfaceTrailerOrBuilder
- Returns:
- The statusDetails.
-
setStatusDetails
public Trailer.Builder setStatusDetails(ByteString value)
The value of the 'grpc-status-details-bin' metadata key. If present, this is always an encoded 'google.rpc.Status' message.
bytes status_details = 4;
- Parameters:
value
- The statusDetails to set.- Returns:
- This builder for chaining.
-
clearStatusDetails
public Trailer.Builder clearStatusDetails()
The value of the 'grpc-status-details-bin' metadata key. If present, this is always an encoded 'google.rpc.Status' message.
bytes status_details = 4;
- Returns:
- This builder for chaining.
-
setUnknownFields
public final Trailer.Builder setUnknownFields(UnknownFieldSet unknownFields)
- Specified by:
setUnknownFields
in interfaceMessage.Builder
- Overrides:
setUnknownFields
in classGeneratedMessageV3.Builder<Trailer.Builder>
-
mergeUnknownFields
public final Trailer.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
- Specified by:
mergeUnknownFields
in interfaceMessage.Builder
- Overrides:
mergeUnknownFields
in classGeneratedMessageV3.Builder<Trailer.Builder>
-
-