Package io.grpc.channelz.v1
Class SubchannelRef.Builder
- java.lang.Object
-
- com.google.protobuf.AbstractMessageLite.Builder
-
- com.google.protobuf.AbstractMessage.Builder<BuilderT>
-
- com.google.protobuf.GeneratedMessageV3.Builder<SubchannelRef.Builder>
-
- io.grpc.channelz.v1.SubchannelRef.Builder
-
- All Implemented Interfaces:
Message.Builder
,MessageLite.Builder
,MessageLiteOrBuilder
,MessageOrBuilder
,SubchannelRefOrBuilder
,Cloneable
- Enclosing class:
- SubchannelRef
public static final class SubchannelRef.Builder extends GeneratedMessageV3.Builder<SubchannelRef.Builder> implements SubchannelRefOrBuilder
SubchannelRef is a reference to a Subchannel.
Protobuf typegrpc.channelz.v1.SubchannelRef
-
-
Method Summary
-
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<SubchannelRef.Builder>
-
clear
public SubchannelRef.Builder clear()
- Specified by:
clear
in interfaceMessage.Builder
- Specified by:
clear
in interfaceMessageLite.Builder
- Overrides:
clear
in classGeneratedMessageV3.Builder<SubchannelRef.Builder>
-
getDescriptorForType
public Descriptors.Descriptor getDescriptorForType()
- Specified by:
getDescriptorForType
in interfaceMessage.Builder
- Specified by:
getDescriptorForType
in interfaceMessageOrBuilder
- Overrides:
getDescriptorForType
in classGeneratedMessageV3.Builder<SubchannelRef.Builder>
-
getDefaultInstanceForType
public SubchannelRef getDefaultInstanceForType()
- Specified by:
getDefaultInstanceForType
in interfaceMessageLiteOrBuilder
- Specified by:
getDefaultInstanceForType
in interfaceMessageOrBuilder
-
build
public SubchannelRef build()
- Specified by:
build
in interfaceMessage.Builder
- Specified by:
build
in interfaceMessageLite.Builder
-
buildPartial
public SubchannelRef buildPartial()
- Specified by:
buildPartial
in interfaceMessage.Builder
- Specified by:
buildPartial
in interfaceMessageLite.Builder
-
clone
public SubchannelRef.Builder clone()
- Specified by:
clone
in interfaceMessage.Builder
- Specified by:
clone
in interfaceMessageLite.Builder
- Overrides:
clone
in classGeneratedMessageV3.Builder<SubchannelRef.Builder>
-
setField
public SubchannelRef.Builder setField(Descriptors.FieldDescriptor field, Object value)
- Specified by:
setField
in interfaceMessage.Builder
- Overrides:
setField
in classGeneratedMessageV3.Builder<SubchannelRef.Builder>
-
clearField
public SubchannelRef.Builder clearField(Descriptors.FieldDescriptor field)
- Specified by:
clearField
in interfaceMessage.Builder
- Overrides:
clearField
in classGeneratedMessageV3.Builder<SubchannelRef.Builder>
-
clearOneof
public SubchannelRef.Builder clearOneof(Descriptors.OneofDescriptor oneof)
- Specified by:
clearOneof
in interfaceMessage.Builder
- Overrides:
clearOneof
in classGeneratedMessageV3.Builder<SubchannelRef.Builder>
-
setRepeatedField
public SubchannelRef.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
- Specified by:
setRepeatedField
in interfaceMessage.Builder
- Overrides:
setRepeatedField
in classGeneratedMessageV3.Builder<SubchannelRef.Builder>
-
addRepeatedField
public SubchannelRef.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
- Specified by:
addRepeatedField
in interfaceMessage.Builder
- Overrides:
addRepeatedField
in classGeneratedMessageV3.Builder<SubchannelRef.Builder>
-
mergeFrom
public SubchannelRef.Builder mergeFrom(Message other)
- Specified by:
mergeFrom
in interfaceMessage.Builder
- Overrides:
mergeFrom
in classAbstractMessage.Builder<SubchannelRef.Builder>
-
mergeFrom
public SubchannelRef.Builder mergeFrom(SubchannelRef other)
-
isInitialized
public final boolean isInitialized()
- Specified by:
isInitialized
in interfaceMessageLiteOrBuilder
- Overrides:
isInitialized
in classGeneratedMessageV3.Builder<SubchannelRef.Builder>
-
mergeFrom
public SubchannelRef.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<SubchannelRef.Builder>
- Throws:
IOException
-
getSubchannelId
public long getSubchannelId()
The globally unique id for this subchannel. Must be a positive number.
int64 subchannel_id = 7;
- Specified by:
getSubchannelId
in interfaceSubchannelRefOrBuilder
- Returns:
- The subchannelId.
-
setSubchannelId
public SubchannelRef.Builder setSubchannelId(long value)
The globally unique id for this subchannel. Must be a positive number.
int64 subchannel_id = 7;
- Parameters:
value
- The subchannelId to set.- Returns:
- This builder for chaining.
-
clearSubchannelId
public SubchannelRef.Builder clearSubchannelId()
The globally unique id for this subchannel. Must be a positive number.
int64 subchannel_id = 7;
- Returns:
- This builder for chaining.
-
getName
public String getName()
An optional name associated with the subchannel.
string name = 8;
- Specified by:
getName
in interfaceSubchannelRefOrBuilder
- Returns:
- The name.
-
getNameBytes
public ByteString getNameBytes()
An optional name associated with the subchannel.
string name = 8;
- Specified by:
getNameBytes
in interfaceSubchannelRefOrBuilder
- Returns:
- The bytes for name.
-
setName
public SubchannelRef.Builder setName(String value)
An optional name associated with the subchannel.
string name = 8;
- Parameters:
value
- The name to set.- Returns:
- This builder for chaining.
-
clearName
public SubchannelRef.Builder clearName()
An optional name associated with the subchannel.
string name = 8;
- Returns:
- This builder for chaining.
-
setNameBytes
public SubchannelRef.Builder setNameBytes(ByteString value)
An optional name associated with the subchannel.
string name = 8;
- Parameters:
value
- The bytes for name to set.- Returns:
- This builder for chaining.
-
setUnknownFields
public final SubchannelRef.Builder setUnknownFields(UnknownFieldSet unknownFields)
- Specified by:
setUnknownFields
in interfaceMessage.Builder
- Overrides:
setUnknownFields
in classGeneratedMessageV3.Builder<SubchannelRef.Builder>
-
mergeUnknownFields
public final SubchannelRef.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
- Specified by:
mergeUnknownFields
in interfaceMessage.Builder
- Overrides:
mergeUnknownFields
in classGeneratedMessageV3.Builder<SubchannelRef.Builder>
-
-