Use an InsertAddressHttpRequest object to make an addresses.insert method call.
4338
private static void insertNewAddressUsingRequest(AddressClient client, String newAddressName)
      throws InterruptedException, ExecutionException {
    // Begin samplegen code for insertAddress().
    ProjectRegionName region = ProjectRegionName.of(PROJECT_NAME, REGION);
    Address address = Address.newBuilder().build();
    InsertAddressHttpRequest request =
        InsertAddressHttpRequest.newBuilder()
            .setRegion(region.toString())
            .setAddressResource(address)
            .build();
    // Do something
    Operation response = client.insertAddress(request);

    // End samplegen code for insertAddress().
    System.out.format("Result of insert: %s\n", response.toString());
  }
814584
def sendtoaddress(self, recv_addr, amount, comment=""):
        """"""
        return self.req("sendtoaddress", [recv_addr, amount, comment])
1021246
@RequestMapping(value = "/insert", method = RequestMethod.POST)
	public @ResponseBody
	void insert(
			@RequestParam(value = "username", required = true) String username,
			@RequestParam(value = "name", required = false) String name,
			@RequestParam(value = "surname", required = false) String surname,
			@RequestParam(value = "telephoneNumber", required = true) String telephoneNumber,
			@RequestParam(value = "verificationText", required = true) String verificationText,
			HttpServletRequest request, HttpServletResponse response) {

		logger.debug("Received a request to insert an account");

		// validate captcha
		Boolean isResponseCorrect = false;
		String sessionId = request.getSession().getId();

		// Call the Service method
		try {
			isResponseCorrect = captchaService.validateResponseForID(sessionId,
					verificationText);
			if (isResponseCorrect == false) {
				response.sendError(500, "Provided captcha text was wrong.");
				return;
			}
		} catch (Exception e) {
			e.printStackTrace();
			return;
		}

		accountService.insert(new Account(username, name, surname,
				telephoneNumber));

	}
351171
private void assignAddress(String addressString) throws ChannelFrameworkException, UnknownHostException {
        if (addressString == null) {
            // No address found in properties. No CFEndPoint can be created.
            throw new ChannelFrameworkException("No address available in properties.");
        }
        if ("*".equals(addressString)) {
            // TODO WAS used the node name
            this.address = InetAddress.getLocalHost();
        } else {
            this.address = InetAddress.getByName(addressString);
        }
    }
842793
function Insert (str, position) {
    if (!this || this.constructor !== SimpleTextOperation) {
      // => function was called without 'new'
      return new Insert(str, position);
    }
    this.str = str;
    this.position = position;
  }
242210
public HttpListener addListener(InetAddrPort address)
        throws IOException
    {
        HttpListener listener = new SocketListener(address);
        listener.setHttpServer(this);
        _listeners.add(listener);
        addComponent(listener);
        return listener;
    }
1113300
@Action(
            publishing = Publishing.ENABLED // uses wrapper factory
    )
    public PublishedCustomer placeOrderToNewAddress(
            @ParameterLayout(named="Name of product to order")
            final String name,
            @ParameterLayout(named="New address Line 1")
            final String line1,
            @Parameter(optionality = Optionality.OPTIONAL)
            @ParameterLayout(named="New address Line 2")
            final String line2,
            @ParameterLayout(named="New address Town")
            final String town) {
        wrapperFactory.wrap(this).addOrder(name);
        wrapperFactory.wrap(this).updateAddress(line1, line2, town);
        return this;
    }
32709
@Override
  public String requestDepositAddress(Currency currency, String... arguments) throws IOException {
    try {
      CoingiDepositWalletRequest request =
          new CoingiDepositWalletRequest().setCurrency(currency.getCurrencyCode().toUpperCase());
      return depositWallet(request).getAddress();
    } catch (CoingiException e) {
      throw CoingiErrorAdapter.adapt(e);
    }
  }
1342805
def add_address(ipaddress, rule)
      return false unless rule.is_a?(Rule)
      @addresses ||= {}
      (@addresses[ipaddress] ||= []) << rule
      rule
    end
407807
public SipServletRequest createRequest(SipApplicationSession sipAppSession,
			String method, Address from, Address to, String handler, String originalCallId, String fromTagToUse) {
		if (logger.isDebugEnabled()) {
			logger
					.debug("Creating new SipServletRequest for SipApplicationSession["
							+ sipAppSession
							+ "] METHOD["
							+ method
							+ "] FROM_A[" + from + "] TO_A[" + to + "]");
		}

		validateCreation(method, sipAppSession);

		try { 
			//javadoc specifies that a copy of the address should be done hence the clone
			return createSipServletRequest(sipAppSession, method, (Address)from.clone(), (Address)to.clone(), handler, originalCallId, fromTagToUse);
		} catch (ServletParseException e) {
			logger.error("Error creating sipServletRequest", e);
			return null;
		}
	}
1321034
@Override
	public synchronized RecordParam insert(String site, String type, String name, int used, String flags,
			String values) throws DatabaseException {
        try {
			psInsert.setString(1, site);
			psInsert.setString(2, type);
			psInsert.setString(3, name);
			psInsert.setInt(4, used);
			psInsert.setString(5, flags);
			psInsert.setString(6, values);
			psInsert.executeUpdate();
			
			long id;
			try (ResultSet rs = psGetIdLastInsert.executeQuery()) {
				rs.next();
				id = rs.getLong(1);
			}
			return read(id);
		} catch (SQLException e) {
			throw new DatabaseException(e);
		}
    }
937681
@GuardedBy("maxNumberInvariant")
   private void addQueuesForAddresses(Collection<Address> addresses) {
      for (Address address : addresses) {
         if (interestedInAddress(address)) {
            address2key.put(address, new ArrayBlockingQueue<>(bufferSize));
         } else {
            log.tracef("Skipping address: %s", address);
         }
      }
   }
1012122
public BoxWebHook.Info addWebHook(URL address, BoxWebHook.Trigger... triggers) {
        return BoxWebHook.create(this, address, triggers);
    }
258428
public void insert(final DevEncoded argIn) {
		attributeValue_5.data_format = AttrDataFormat.FMT_UNKNOWN;
		attributeValue_5.err_list = new DevError[0]; // ?? Only for DevEncoded, else
		// (NullPointerException)
		attributeValue_5.w_dim.dim_x = 1;
		attributeValue_5.w_dim.dim_y = 0;
		attributeValue_5.value.encoded_att_value(new DevEncoded[] { argIn });
    }
683352
public TransactionOutput addOutput(Coin value, Address address) {
        return addOutput(new TransactionOutput(params, this, value, address));
    }
1326921
public Address createAddress(String sipAddress)
			throws ServletParseException {
		try {
			if (logger.isDebugEnabled()) {
				logger.debug("Creating Address from [" + sipAddress + "]");
			}

			AddressImpl retval = new AddressImpl();
			retval.setValue(sipAddress);
			return retval;
		} catch (IllegalArgumentException e) {
			throw new ServletParseException(e);
		}
	}
1348766
def put(query_url,
            headers: {},
            parameters: {})
      HttpRequest.new(HttpMethodEnum::PUT,
                      query_url,
                      headers: headers,
                      parameters: parameters)
    end