Class TlsRoute.RouteAction.Builder
java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessage.Builder<TlsRoute.RouteAction.Builder>
com.google.cloud.networkservices.v1.TlsRoute.RouteAction.Builder
- All Implemented Interfaces:
TlsRoute.RouteActionOrBuilder,com.google.protobuf.Message.Builder,com.google.protobuf.MessageLite.Builder,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,Cloneable
- Enclosing class:
- TlsRoute.RouteAction
public static final class TlsRoute.RouteAction.Builder
extends com.google.protobuf.GeneratedMessage.Builder<TlsRoute.RouteAction.Builder>
implements TlsRoute.RouteActionOrBuilder
The specifications for routing traffic and applying associated policies.Protobuf type
google.cloud.networkservices.v1.TlsRoute.RouteAction-
Method Summary
Modifier and TypeMethodDescriptionaddAllDestinations(Iterable<? extends TlsRoute.RouteDestination> values) Required.addDestinations(int index, TlsRoute.RouteDestination value) Required.addDestinations(int index, TlsRoute.RouteDestination.Builder builderForValue) Required.Required.addDestinations(TlsRoute.RouteDestination.Builder builderForValue) Required.Required.addDestinationsBuilder(int index) Required.build()clear()Required.Optional.static final com.google.protobuf.Descriptors.Descriptorcom.google.protobuf.Descriptors.DescriptorgetDestinations(int index) Required.getDestinationsBuilder(int index) Required.Required.intRequired.Required.getDestinationsOrBuilder(int index) Required.List<? extends TlsRoute.RouteDestinationOrBuilder>Required.com.google.protobuf.DurationOptional.com.google.protobuf.Duration.BuilderOptional.com.google.protobuf.DurationOrBuilderOptional.booleanOptional.protected com.google.protobuf.GeneratedMessage.FieldAccessorTablefinal booleanmergeFrom(TlsRoute.RouteAction other) mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) mergeFrom(com.google.protobuf.Message other) mergeIdleTimeout(com.google.protobuf.Duration value) Optional.removeDestinations(int index) Required.setDestinations(int index, TlsRoute.RouteDestination value) Required.setDestinations(int index, TlsRoute.RouteDestination.Builder builderForValue) Required.setIdleTimeout(com.google.protobuf.Duration value) Optional.setIdleTimeout(com.google.protobuf.Duration.Builder builderForValue) Optional.Methods inherited from class com.google.protobuf.GeneratedMessage.Builder
addRepeatedField, clearField, clearOneof, clone, getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, internalGetMapField, internalGetMapFieldReflection, internalGetMutableMapField, internalGetMutableMapFieldReflection, isClean, markClean, mergeUnknownFields, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, setField, setRepeatedField, setUnknownFields, setUnknownFieldSetBuilder, setUnknownFieldsProto3Methods inherited from class com.google.protobuf.AbstractMessage.Builder
findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toStringMethods inherited from class com.google.protobuf.AbstractMessageLite.Builder
addAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, newUninitializedMessageExceptionMethods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface com.google.protobuf.Message.Builder
mergeDelimitedFrom, mergeDelimitedFromMethods inherited from interface com.google.protobuf.MessageLite.Builder
mergeFromMethods inherited from interface com.google.protobuf.MessageOrBuilder
findInitializationErrors, getAllFields, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
-
Method Details
-
getDescriptor
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() -
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()- Specified by:
internalGetFieldAccessorTablein classcom.google.protobuf.GeneratedMessage.Builder<TlsRoute.RouteAction.Builder>
-
clear
- Specified by:
clearin interfacecom.google.protobuf.Message.Builder- Specified by:
clearin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
clearin classcom.google.protobuf.GeneratedMessage.Builder<TlsRoute.RouteAction.Builder>
-
getDescriptorForType
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.Message.Builder- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.MessageOrBuilder- Overrides:
getDescriptorForTypein classcom.google.protobuf.GeneratedMessage.Builder<TlsRoute.RouteAction.Builder>
-
getDefaultInstanceForType
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-
build
- Specified by:
buildin interfacecom.google.protobuf.Message.Builder- Specified by:
buildin interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
- Specified by:
buildPartialin interfacecom.google.protobuf.Message.Builder- Specified by:
buildPartialin interfacecom.google.protobuf.MessageLite.Builder
-
mergeFrom
- Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<TlsRoute.RouteAction.Builder>
-
mergeFrom
-
isInitialized
public final boolean isInitialized()- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessage.Builder<TlsRoute.RouteAction.Builder>
-
mergeFrom
public TlsRoute.RouteAction.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException - Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Specified by:
mergeFromin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<TlsRoute.RouteAction.Builder>- Throws:
IOException
-
getDestinationsList
Required. The destination services to which traffic should be forwarded. At least one destination service is required.
repeated .google.cloud.networkservices.v1.TlsRoute.RouteDestination destinations = 1 [(.google.api.field_behavior) = REQUIRED];- Specified by:
getDestinationsListin interfaceTlsRoute.RouteActionOrBuilder
-
getDestinationsCount
public int getDestinationsCount()Required. The destination services to which traffic should be forwarded. At least one destination service is required.
repeated .google.cloud.networkservices.v1.TlsRoute.RouteDestination destinations = 1 [(.google.api.field_behavior) = REQUIRED];- Specified by:
getDestinationsCountin interfaceTlsRoute.RouteActionOrBuilder
-
getDestinations
Required. The destination services to which traffic should be forwarded. At least one destination service is required.
repeated .google.cloud.networkservices.v1.TlsRoute.RouteDestination destinations = 1 [(.google.api.field_behavior) = REQUIRED];- Specified by:
getDestinationsin interfaceTlsRoute.RouteActionOrBuilder
-
setDestinations
Required. The destination services to which traffic should be forwarded. At least one destination service is required.
repeated .google.cloud.networkservices.v1.TlsRoute.RouteDestination destinations = 1 [(.google.api.field_behavior) = REQUIRED]; -
setDestinations
public TlsRoute.RouteAction.Builder setDestinations(int index, TlsRoute.RouteDestination.Builder builderForValue) Required. The destination services to which traffic should be forwarded. At least one destination service is required.
repeated .google.cloud.networkservices.v1.TlsRoute.RouteDestination destinations = 1 [(.google.api.field_behavior) = REQUIRED]; -
addDestinations
Required. The destination services to which traffic should be forwarded. At least one destination service is required.
repeated .google.cloud.networkservices.v1.TlsRoute.RouteDestination destinations = 1 [(.google.api.field_behavior) = REQUIRED]; -
addDestinations
Required. The destination services to which traffic should be forwarded. At least one destination service is required.
repeated .google.cloud.networkservices.v1.TlsRoute.RouteDestination destinations = 1 [(.google.api.field_behavior) = REQUIRED]; -
addDestinations
public TlsRoute.RouteAction.Builder addDestinations(TlsRoute.RouteDestination.Builder builderForValue) Required. The destination services to which traffic should be forwarded. At least one destination service is required.
repeated .google.cloud.networkservices.v1.TlsRoute.RouteDestination destinations = 1 [(.google.api.field_behavior) = REQUIRED]; -
addDestinations
public TlsRoute.RouteAction.Builder addDestinations(int index, TlsRoute.RouteDestination.Builder builderForValue) Required. The destination services to which traffic should be forwarded. At least one destination service is required.
repeated .google.cloud.networkservices.v1.TlsRoute.RouteDestination destinations = 1 [(.google.api.field_behavior) = REQUIRED]; -
addAllDestinations
public TlsRoute.RouteAction.Builder addAllDestinations(Iterable<? extends TlsRoute.RouteDestination> values) Required. The destination services to which traffic should be forwarded. At least one destination service is required.
repeated .google.cloud.networkservices.v1.TlsRoute.RouteDestination destinations = 1 [(.google.api.field_behavior) = REQUIRED]; -
clearDestinations
Required. The destination services to which traffic should be forwarded. At least one destination service is required.
repeated .google.cloud.networkservices.v1.TlsRoute.RouteDestination destinations = 1 [(.google.api.field_behavior) = REQUIRED]; -
removeDestinations
Required. The destination services to which traffic should be forwarded. At least one destination service is required.
repeated .google.cloud.networkservices.v1.TlsRoute.RouteDestination destinations = 1 [(.google.api.field_behavior) = REQUIRED]; -
getDestinationsBuilder
Required. The destination services to which traffic should be forwarded. At least one destination service is required.
repeated .google.cloud.networkservices.v1.TlsRoute.RouteDestination destinations = 1 [(.google.api.field_behavior) = REQUIRED]; -
getDestinationsOrBuilder
Required. The destination services to which traffic should be forwarded. At least one destination service is required.
repeated .google.cloud.networkservices.v1.TlsRoute.RouteDestination destinations = 1 [(.google.api.field_behavior) = REQUIRED];- Specified by:
getDestinationsOrBuilderin interfaceTlsRoute.RouteActionOrBuilder
-
getDestinationsOrBuilderList
Required. The destination services to which traffic should be forwarded. At least one destination service is required.
repeated .google.cloud.networkservices.v1.TlsRoute.RouteDestination destinations = 1 [(.google.api.field_behavior) = REQUIRED];- Specified by:
getDestinationsOrBuilderListin interfaceTlsRoute.RouteActionOrBuilder
-
addDestinationsBuilder
Required. The destination services to which traffic should be forwarded. At least one destination service is required.
repeated .google.cloud.networkservices.v1.TlsRoute.RouteDestination destinations = 1 [(.google.api.field_behavior) = REQUIRED]; -
addDestinationsBuilder
Required. The destination services to which traffic should be forwarded. At least one destination service is required.
repeated .google.cloud.networkservices.v1.TlsRoute.RouteDestination destinations = 1 [(.google.api.field_behavior) = REQUIRED]; -
getDestinationsBuilderList
Required. The destination services to which traffic should be forwarded. At least one destination service is required.
repeated .google.cloud.networkservices.v1.TlsRoute.RouteDestination destinations = 1 [(.google.api.field_behavior) = REQUIRED]; -
hasIdleTimeout
public boolean hasIdleTimeout()Optional. Specifies the idle timeout for the selected route. The idle timeout is defined as the period in which there are no bytes sent or received on either the upstream or downstream connection. If not set, the default idle timeout is 1 hour. If set to 0s, the timeout will be disabled.
.google.protobuf.Duration idle_timeout = 4 [(.google.api.field_behavior) = OPTIONAL];- Specified by:
hasIdleTimeoutin interfaceTlsRoute.RouteActionOrBuilder- Returns:
- Whether the idleTimeout field is set.
-
getIdleTimeout
public com.google.protobuf.Duration getIdleTimeout()Optional. Specifies the idle timeout for the selected route. The idle timeout is defined as the period in which there are no bytes sent or received on either the upstream or downstream connection. If not set, the default idle timeout is 1 hour. If set to 0s, the timeout will be disabled.
.google.protobuf.Duration idle_timeout = 4 [(.google.api.field_behavior) = OPTIONAL];- Specified by:
getIdleTimeoutin interfaceTlsRoute.RouteActionOrBuilder- Returns:
- The idleTimeout.
-
setIdleTimeout
Optional. Specifies the idle timeout for the selected route. The idle timeout is defined as the period in which there are no bytes sent or received on either the upstream or downstream connection. If not set, the default idle timeout is 1 hour. If set to 0s, the timeout will be disabled.
.google.protobuf.Duration idle_timeout = 4 [(.google.api.field_behavior) = OPTIONAL]; -
setIdleTimeout
public TlsRoute.RouteAction.Builder setIdleTimeout(com.google.protobuf.Duration.Builder builderForValue) Optional. Specifies the idle timeout for the selected route. The idle timeout is defined as the period in which there are no bytes sent or received on either the upstream or downstream connection. If not set, the default idle timeout is 1 hour. If set to 0s, the timeout will be disabled.
.google.protobuf.Duration idle_timeout = 4 [(.google.api.field_behavior) = OPTIONAL]; -
mergeIdleTimeout
Optional. Specifies the idle timeout for the selected route. The idle timeout is defined as the period in which there are no bytes sent or received on either the upstream or downstream connection. If not set, the default idle timeout is 1 hour. If set to 0s, the timeout will be disabled.
.google.protobuf.Duration idle_timeout = 4 [(.google.api.field_behavior) = OPTIONAL]; -
clearIdleTimeout
Optional. Specifies the idle timeout for the selected route. The idle timeout is defined as the period in which there are no bytes sent or received on either the upstream or downstream connection. If not set, the default idle timeout is 1 hour. If set to 0s, the timeout will be disabled.
.google.protobuf.Duration idle_timeout = 4 [(.google.api.field_behavior) = OPTIONAL]; -
getIdleTimeoutBuilder
public com.google.protobuf.Duration.Builder getIdleTimeoutBuilder()Optional. Specifies the idle timeout for the selected route. The idle timeout is defined as the period in which there are no bytes sent or received on either the upstream or downstream connection. If not set, the default idle timeout is 1 hour. If set to 0s, the timeout will be disabled.
.google.protobuf.Duration idle_timeout = 4 [(.google.api.field_behavior) = OPTIONAL]; -
getIdleTimeoutOrBuilder
public com.google.protobuf.DurationOrBuilder getIdleTimeoutOrBuilder()Optional. Specifies the idle timeout for the selected route. The idle timeout is defined as the period in which there are no bytes sent or received on either the upstream or downstream connection. If not set, the default idle timeout is 1 hour. If set to 0s, the timeout will be disabled.
.google.protobuf.Duration idle_timeout = 4 [(.google.api.field_behavior) = OPTIONAL];- Specified by:
getIdleTimeoutOrBuilderin interfaceTlsRoute.RouteActionOrBuilder
-