Package com.google.cloud.compute.v1
Class RouteAsPath.Builder
- java.lang.Object
-
- com.google.protobuf.AbstractMessageLite.Builder
-
- com.google.protobuf.AbstractMessage.Builder<BuilderT>
-
- com.google.protobuf.GeneratedMessageV3.Builder<RouteAsPath.Builder>
-
- com.google.cloud.compute.v1.RouteAsPath.Builder
-
- All Implemented Interfaces:
RouteAsPathOrBuilder
,com.google.protobuf.Message.Builder
,com.google.protobuf.MessageLite.Builder
,com.google.protobuf.MessageLiteOrBuilder
,com.google.protobuf.MessageOrBuilder
,Cloneable
- Enclosing class:
- RouteAsPath
public static final class RouteAsPath.Builder extends com.google.protobuf.GeneratedMessageV3.Builder<RouteAsPath.Builder> implements RouteAsPathOrBuilder
google.cloud.compute.v1.RouteAsPath
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description RouteAsPath.Builder
addAllAsLists(Iterable<? extends Integer> values)
[Output Only] The AS numbers of the AS Path.RouteAsPath.Builder
addAsLists(int value)
[Output Only] The AS numbers of the AS Path.RouteAsPath.Builder
addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
RouteAsPath
build()
RouteAsPath
buildPartial()
RouteAsPath.Builder
clear()
RouteAsPath.Builder
clearAsLists()
[Output Only] The AS numbers of the AS Path.RouteAsPath.Builder
clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
RouteAsPath.Builder
clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
RouteAsPath.Builder
clearPathSegmentType()
[Output Only] The type of the AS Path, which can be one of the following values: - 'AS_SET': unordered set of autonomous systems that the route in has traversed - 'AS_SEQUENCE': ordered set of autonomous systems that the route has traversed - 'AS_CONFED_SEQUENCE': ordered set of Member Autonomous Systems in the local confederation that the route has traversed - 'AS_CONFED_SET': unordered set of Member Autonomous Systems in the local confederation that the route has traversed Check the PathSegmentType enum for the list of possible values.RouteAsPath.Builder
clone()
int
getAsLists(int index)
[Output Only] The AS numbers of the AS Path.int
getAsListsCount()
[Output Only] The AS numbers of the AS Path.List<Integer>
getAsListsList()
[Output Only] The AS numbers of the AS Path.RouteAsPath
getDefaultInstanceForType()
static com.google.protobuf.Descriptors.Descriptor
getDescriptor()
com.google.protobuf.Descriptors.Descriptor
getDescriptorForType()
String
getPathSegmentType()
[Output Only] The type of the AS Path, which can be one of the following values: - 'AS_SET': unordered set of autonomous systems that the route in has traversed - 'AS_SEQUENCE': ordered set of autonomous systems that the route has traversed - 'AS_CONFED_SEQUENCE': ordered set of Member Autonomous Systems in the local confederation that the route has traversed - 'AS_CONFED_SET': unordered set of Member Autonomous Systems in the local confederation that the route has traversed Check the PathSegmentType enum for the list of possible values.com.google.protobuf.ByteString
getPathSegmentTypeBytes()
[Output Only] The type of the AS Path, which can be one of the following values: - 'AS_SET': unordered set of autonomous systems that the route in has traversed - 'AS_SEQUENCE': ordered set of autonomous systems that the route has traversed - 'AS_CONFED_SEQUENCE': ordered set of Member Autonomous Systems in the local confederation that the route has traversed - 'AS_CONFED_SET': unordered set of Member Autonomous Systems in the local confederation that the route has traversed Check the PathSegmentType enum for the list of possible values.boolean
hasPathSegmentType()
[Output Only] The type of the AS Path, which can be one of the following values: - 'AS_SET': unordered set of autonomous systems that the route in has traversed - 'AS_SEQUENCE': ordered set of autonomous systems that the route has traversed - 'AS_CONFED_SEQUENCE': ordered set of Member Autonomous Systems in the local confederation that the route has traversed - 'AS_CONFED_SET': unordered set of Member Autonomous Systems in the local confederation that the route has traversed Check the PathSegmentType enum for the list of possible values.protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable()
boolean
isInitialized()
RouteAsPath.Builder
mergeFrom(RouteAsPath other)
RouteAsPath.Builder
mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
RouteAsPath.Builder
mergeFrom(com.google.protobuf.Message other)
RouteAsPath.Builder
mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
RouteAsPath.Builder
setAsLists(int index, int value)
[Output Only] The AS numbers of the AS Path.RouteAsPath.Builder
setField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
RouteAsPath.Builder
setPathSegmentType(String value)
[Output Only] The type of the AS Path, which can be one of the following values: - 'AS_SET': unordered set of autonomous systems that the route in has traversed - 'AS_SEQUENCE': ordered set of autonomous systems that the route has traversed - 'AS_CONFED_SEQUENCE': ordered set of Member Autonomous Systems in the local confederation that the route has traversed - 'AS_CONFED_SET': unordered set of Member Autonomous Systems in the local confederation that the route has traversed Check the PathSegmentType enum for the list of possible values.RouteAsPath.Builder
setPathSegmentTypeBytes(com.google.protobuf.ByteString value)
[Output Only] The type of the AS Path, which can be one of the following values: - 'AS_SET': unordered set of autonomous systems that the route in has traversed - 'AS_SEQUENCE': ordered set of autonomous systems that the route has traversed - 'AS_CONFED_SEQUENCE': ordered set of Member Autonomous Systems in the local confederation that the route has traversed - 'AS_CONFED_SET': unordered set of Member Autonomous Systems in the local confederation that the route has traversed Check the PathSegmentType enum for the list of possible values.RouteAsPath.Builder
setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)
RouteAsPath.Builder
setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
-
Methods inherited from class com.google.protobuf.GeneratedMessageV3.Builder
getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, internalGetMapField, internalGetMutableMapField, 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
-
-
-
-
Method Detail
-
getDescriptor
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
-
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
- Specified by:
internalGetFieldAccessorTable
in classcom.google.protobuf.GeneratedMessageV3.Builder<RouteAsPath.Builder>
-
clear
public RouteAsPath.Builder clear()
- Specified by:
clear
in interfacecom.google.protobuf.Message.Builder
- Specified by:
clear
in interfacecom.google.protobuf.MessageLite.Builder
- Overrides:
clear
in classcom.google.protobuf.GeneratedMessageV3.Builder<RouteAsPath.Builder>
-
getDescriptorForType
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
- Specified by:
getDescriptorForType
in interfacecom.google.protobuf.Message.Builder
- Specified by:
getDescriptorForType
in interfacecom.google.protobuf.MessageOrBuilder
- Overrides:
getDescriptorForType
in classcom.google.protobuf.GeneratedMessageV3.Builder<RouteAsPath.Builder>
-
getDefaultInstanceForType
public RouteAsPath getDefaultInstanceForType()
- Specified by:
getDefaultInstanceForType
in interfacecom.google.protobuf.MessageLiteOrBuilder
- Specified by:
getDefaultInstanceForType
in interfacecom.google.protobuf.MessageOrBuilder
-
build
public RouteAsPath build()
- Specified by:
build
in interfacecom.google.protobuf.Message.Builder
- Specified by:
build
in interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
public RouteAsPath buildPartial()
- Specified by:
buildPartial
in interfacecom.google.protobuf.Message.Builder
- Specified by:
buildPartial
in interfacecom.google.protobuf.MessageLite.Builder
-
clone
public RouteAsPath.Builder clone()
- Specified by:
clone
in interfacecom.google.protobuf.Message.Builder
- Specified by:
clone
in interfacecom.google.protobuf.MessageLite.Builder
- Overrides:
clone
in classcom.google.protobuf.GeneratedMessageV3.Builder<RouteAsPath.Builder>
-
setField
public RouteAsPath.Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
- Specified by:
setField
in interfacecom.google.protobuf.Message.Builder
- Overrides:
setField
in classcom.google.protobuf.GeneratedMessageV3.Builder<RouteAsPath.Builder>
-
clearField
public RouteAsPath.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
- Specified by:
clearField
in interfacecom.google.protobuf.Message.Builder
- Overrides:
clearField
in classcom.google.protobuf.GeneratedMessageV3.Builder<RouteAsPath.Builder>
-
clearOneof
public RouteAsPath.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
- Specified by:
clearOneof
in interfacecom.google.protobuf.Message.Builder
- Overrides:
clearOneof
in classcom.google.protobuf.GeneratedMessageV3.Builder<RouteAsPath.Builder>
-
setRepeatedField
public RouteAsPath.Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)
- Specified by:
setRepeatedField
in interfacecom.google.protobuf.Message.Builder
- Overrides:
setRepeatedField
in classcom.google.protobuf.GeneratedMessageV3.Builder<RouteAsPath.Builder>
-
addRepeatedField
public RouteAsPath.Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
- Specified by:
addRepeatedField
in interfacecom.google.protobuf.Message.Builder
- Overrides:
addRepeatedField
in classcom.google.protobuf.GeneratedMessageV3.Builder<RouteAsPath.Builder>
-
mergeFrom
public RouteAsPath.Builder mergeFrom(com.google.protobuf.Message other)
- Specified by:
mergeFrom
in interfacecom.google.protobuf.Message.Builder
- Overrides:
mergeFrom
in classcom.google.protobuf.AbstractMessage.Builder<RouteAsPath.Builder>
-
mergeFrom
public RouteAsPath.Builder mergeFrom(RouteAsPath other)
-
isInitialized
public final boolean isInitialized()
- Specified by:
isInitialized
in interfacecom.google.protobuf.MessageLiteOrBuilder
- Overrides:
isInitialized
in classcom.google.protobuf.GeneratedMessageV3.Builder<RouteAsPath.Builder>
-
mergeFrom
public RouteAsPath.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
- Specified by:
mergeFrom
in interfacecom.google.protobuf.Message.Builder
- Specified by:
mergeFrom
in interfacecom.google.protobuf.MessageLite.Builder
- Overrides:
mergeFrom
in classcom.google.protobuf.AbstractMessage.Builder<RouteAsPath.Builder>
- Throws:
IOException
-
getAsListsList
public List<Integer> getAsListsList()
[Output Only] The AS numbers of the AS Path.
repeated uint32 as_lists = 134112584;
- Specified by:
getAsListsList
in interfaceRouteAsPathOrBuilder
- Returns:
- A list containing the asLists.
-
getAsListsCount
public int getAsListsCount()
[Output Only] The AS numbers of the AS Path.
repeated uint32 as_lists = 134112584;
- Specified by:
getAsListsCount
in interfaceRouteAsPathOrBuilder
- Returns:
- The count of asLists.
-
getAsLists
public int getAsLists(int index)
[Output Only] The AS numbers of the AS Path.
repeated uint32 as_lists = 134112584;
- Specified by:
getAsLists
in interfaceRouteAsPathOrBuilder
- Parameters:
index
- The index of the element to return.- Returns:
- The asLists at the given index.
-
setAsLists
public RouteAsPath.Builder setAsLists(int index, int value)
[Output Only] The AS numbers of the AS Path.
repeated uint32 as_lists = 134112584;
- Parameters:
index
- The index to set the value at.value
- The asLists to set.- Returns:
- This builder for chaining.
-
addAsLists
public RouteAsPath.Builder addAsLists(int value)
[Output Only] The AS numbers of the AS Path.
repeated uint32 as_lists = 134112584;
- Parameters:
value
- The asLists to add.- Returns:
- This builder for chaining.
-
addAllAsLists
public RouteAsPath.Builder addAllAsLists(Iterable<? extends Integer> values)
[Output Only] The AS numbers of the AS Path.
repeated uint32 as_lists = 134112584;
- Parameters:
values
- The asLists to add.- Returns:
- This builder for chaining.
-
clearAsLists
public RouteAsPath.Builder clearAsLists()
[Output Only] The AS numbers of the AS Path.
repeated uint32 as_lists = 134112584;
- Returns:
- This builder for chaining.
-
hasPathSegmentType
public boolean hasPathSegmentType()
[Output Only] The type of the AS Path, which can be one of the following values: - 'AS_SET': unordered set of autonomous systems that the route in has traversed - 'AS_SEQUENCE': ordered set of autonomous systems that the route has traversed - 'AS_CONFED_SEQUENCE': ordered set of Member Autonomous Systems in the local confederation that the route has traversed - 'AS_CONFED_SET': unordered set of Member Autonomous Systems in the local confederation that the route has traversed Check the PathSegmentType enum for the list of possible values.
optional string path_segment_type = 513464992;
- Specified by:
hasPathSegmentType
in interfaceRouteAsPathOrBuilder
- Returns:
- Whether the pathSegmentType field is set.
-
getPathSegmentType
public String getPathSegmentType()
[Output Only] The type of the AS Path, which can be one of the following values: - 'AS_SET': unordered set of autonomous systems that the route in has traversed - 'AS_SEQUENCE': ordered set of autonomous systems that the route has traversed - 'AS_CONFED_SEQUENCE': ordered set of Member Autonomous Systems in the local confederation that the route has traversed - 'AS_CONFED_SET': unordered set of Member Autonomous Systems in the local confederation that the route has traversed Check the PathSegmentType enum for the list of possible values.
optional string path_segment_type = 513464992;
- Specified by:
getPathSegmentType
in interfaceRouteAsPathOrBuilder
- Returns:
- The pathSegmentType.
-
getPathSegmentTypeBytes
public com.google.protobuf.ByteString getPathSegmentTypeBytes()
[Output Only] The type of the AS Path, which can be one of the following values: - 'AS_SET': unordered set of autonomous systems that the route in has traversed - 'AS_SEQUENCE': ordered set of autonomous systems that the route has traversed - 'AS_CONFED_SEQUENCE': ordered set of Member Autonomous Systems in the local confederation that the route has traversed - 'AS_CONFED_SET': unordered set of Member Autonomous Systems in the local confederation that the route has traversed Check the PathSegmentType enum for the list of possible values.
optional string path_segment_type = 513464992;
- Specified by:
getPathSegmentTypeBytes
in interfaceRouteAsPathOrBuilder
- Returns:
- The bytes for pathSegmentType.
-
setPathSegmentType
public RouteAsPath.Builder setPathSegmentType(String value)
[Output Only] The type of the AS Path, which can be one of the following values: - 'AS_SET': unordered set of autonomous systems that the route in has traversed - 'AS_SEQUENCE': ordered set of autonomous systems that the route has traversed - 'AS_CONFED_SEQUENCE': ordered set of Member Autonomous Systems in the local confederation that the route has traversed - 'AS_CONFED_SET': unordered set of Member Autonomous Systems in the local confederation that the route has traversed Check the PathSegmentType enum for the list of possible values.
optional string path_segment_type = 513464992;
- Parameters:
value
- The pathSegmentType to set.- Returns:
- This builder for chaining.
-
clearPathSegmentType
public RouteAsPath.Builder clearPathSegmentType()
[Output Only] The type of the AS Path, which can be one of the following values: - 'AS_SET': unordered set of autonomous systems that the route in has traversed - 'AS_SEQUENCE': ordered set of autonomous systems that the route has traversed - 'AS_CONFED_SEQUENCE': ordered set of Member Autonomous Systems in the local confederation that the route has traversed - 'AS_CONFED_SET': unordered set of Member Autonomous Systems in the local confederation that the route has traversed Check the PathSegmentType enum for the list of possible values.
optional string path_segment_type = 513464992;
- Returns:
- This builder for chaining.
-
setPathSegmentTypeBytes
public RouteAsPath.Builder setPathSegmentTypeBytes(com.google.protobuf.ByteString value)
[Output Only] The type of the AS Path, which can be one of the following values: - 'AS_SET': unordered set of autonomous systems that the route in has traversed - 'AS_SEQUENCE': ordered set of autonomous systems that the route has traversed - 'AS_CONFED_SEQUENCE': ordered set of Member Autonomous Systems in the local confederation that the route has traversed - 'AS_CONFED_SET': unordered set of Member Autonomous Systems in the local confederation that the route has traversed Check the PathSegmentType enum for the list of possible values.
optional string path_segment_type = 513464992;
- Parameters:
value
- The bytes for pathSegmentType to set.- Returns:
- This builder for chaining.
-
setUnknownFields
public final RouteAsPath.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
- Specified by:
setUnknownFields
in interfacecom.google.protobuf.Message.Builder
- Overrides:
setUnknownFields
in classcom.google.protobuf.GeneratedMessageV3.Builder<RouteAsPath.Builder>
-
mergeUnknownFields
public final RouteAsPath.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
- Specified by:
mergeUnknownFields
in interfacecom.google.protobuf.Message.Builder
- Overrides:
mergeUnknownFields
in classcom.google.protobuf.GeneratedMessageV3.Builder<RouteAsPath.Builder>
-
-